public abstract class Response extends Object implements IdentifiedDataSerializable
Response
is a result of an Operation
being executed.
There are different types of responses:
NormalResponse
the result of a regular Operation result, e.g. Map.put
BackupResponse
the result of a completed Backup
.
Modifier and Type | Field and Description |
---|---|
protected long |
callId |
protected boolean |
urgent |
Constructor and Description |
---|
Response() |
Response(long callId,
boolean urgent) |
Modifier and Type | Method and Description |
---|---|
long |
getCallId()
Returns the call id of the operation this response belongs to.
|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
boolean |
isUrgent()
Check if this Response is an urgent response.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
public boolean isUrgent()
public long getCallId()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.