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()BackupAckResponse
the result of a completed
Backup
Modifier and Type | Field and Description |
---|---|
protected long |
callId |
static int |
OFFSET_CALL_ID |
static int |
OFFSET_IDENTIFIED |
static int |
OFFSET_SERIALIZER_TYPE_ID |
static int |
OFFSET_TYPE_FACTORY_ID |
static int |
OFFSET_TYPE_ID |
static int |
OFFSET_URGENT |
static int |
RESPONSE_SIZE_IN_BYTES |
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 static final int OFFSET_SERIALIZER_TYPE_ID
public static final int OFFSET_IDENTIFIED
public static final int OFFSET_TYPE_FACTORY_ID
public static final int OFFSET_TYPE_ID
public static final int OFFSET_CALL_ID
public static final int OFFSET_URGENT
public static final int RESPONSE_SIZE_IN_BYTES
protected long callId
protected boolean urgent
public boolean isUrgent()
true
if urgent, false
otherwisepublic 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 © 2018 Hazelcast, Inc.. All Rights Reserved.