public class NormalResponse extends Response
Modifier and Type | Field and Description |
---|---|
static int |
OFFSET_BACKUP_ACKS |
static int |
OFFSET_DATA_LENGTH |
static int |
OFFSET_DATA_PAYLOAD |
static int |
OFFSET_IS_DATA |
static int |
OFFSET_NOT_DATA |
callId, OFFSET_CALL_ID, OFFSET_IDENTIFIED, OFFSET_SERIALIZER_TYPE_ID, OFFSET_TYPE_FACTORY_ID, OFFSET_TYPE_ID, OFFSET_URGENT, RESPONSE_SIZE_IN_BYTES, urgent
Constructor and Description |
---|
NormalResponse() |
NormalResponse(Object value,
long callId,
int backupAcks,
boolean urgent) |
Modifier and Type | Method and Description |
---|---|
int |
getBackupAcks()
Returns the number of backups that needs to acknowledge before the invocation completes.
|
int |
getId()
Returns type identifier for this class.
|
Object |
getValue()
Returns the object value of the operation.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
getCallId, getFactoryId, isUrgent
public static final int OFFSET_BACKUP_ACKS
public static final int OFFSET_IS_DATA
public static final int OFFSET_NOT_DATA
public static final int OFFSET_DATA_LENGTH
public static final int OFFSET_DATA_PAYLOAD
public NormalResponse()
public NormalResponse(Object value, long callId, int backupAcks, boolean urgent)
public Object getValue()
public int getBackupAcks()
public int getId()
IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
writeData
in class Response
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
readData
in class Response
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.