public class ClientResponse extends Object implements IdentifiedDataSerializable
Constructor and Description |
---|
ClientResponse() |
ClientResponse(Data response,
boolean isError,
int callId) |
ClientResponse(Data response,
int callId,
boolean isEvent) |
Modifier and Type | Method and Description |
---|---|
int |
getCallId() |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Data |
getResponse() |
boolean |
isError() |
boolean |
isEvent() |
void |
readData(com.hazelcast.nio.ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(com.hazelcast.nio.ObjectDataOutput out)
Writes object fields to output stream
|
public ClientResponse()
public ClientResponse(Data response, boolean isError, int callId)
public ClientResponse(Data response, int callId, boolean isEvent)
public Data getResponse()
public int getCallId()
public boolean isEvent()
public boolean isError()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(com.hazelcast.nio.ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(com.hazelcast.nio.ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.