com.hazelcast.client.impl.client
public abstract class PartitionClientRequest extends ClientRequest implements ExecutionCallback
callId, clientEngine, endpoint, operationService, serializationService, serviceBEGIN_AND_END_FLAGS, BEGIN_FLAG, END_FLAG, HEADER_SIZE, LISTENER_EVENT_FLAG, VERSIONbuffer| Constructor and Description |
|---|
PartitionClientRequest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterResponse()
Called on node side, after sending the response to the client.
|
protected void |
beforeProcess()
Called on node side, before starting any operation.
|
protected void |
beforeResponse()
Called on node side, after process is run and right before sending the response to the client.
|
protected Object |
filter(Object response) |
protected abstract int |
getPartition() |
protected int |
getReplicaIndex() |
void |
onFailure(Throwable t)
Called when an execution is completed with an error.
|
void |
onResponse(Object object)
Called when an execution is completed successfully.
|
protected abstract Operation |
prepareOperation() |
void |
process() |
getCallId, getClassVersion, getClientEngine, getDistributedObjectName, getDistributedObjectType, getEndpoint, getMethodName, getParameters, getService, getServiceName, read, readPortable, setCallId, setClientEngine, setEndpoint, setOperationService, setSerializationService, setService, write, writePortableaddFlag, create, createForDecode, createForEncode, createForEncode, getCorrelationId, getDataOffset, getFlags, getFrameLength, getMessageType, getPartitionId, getVersion, isComplete, isFlagSet, isRetryable, isUrgent, readFrom, setCorrelationId, setDataOffset, setFrameLength, setMessageType, setPartitionId, setRetryable, setVersion, toString, updateFrameLength, wrapForDecode, wrapForEncode, writeTobuffer, getBoolean, getByteArray, getData, getDataList, getDataSet, getInt, getLong, getStringUtf8, index, index, int32Get, int32Set, set, set, set, set, set, set, set, uint16Get, uint16Put, uint32Get, uint32Put, uint8Get, uint8Put, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRequiredPermissiongetClassId, getFactoryIdprotected void beforeProcess()
protected void beforeResponse()
protected void afterResponse()
public final void process()
process in class ClientRequestprotected abstract Operation prepareOperation()
protected abstract int getPartition()
protected int getReplicaIndex()
public final void onResponse(Object object)
ExecutionCallbackonResponse in interface ExecutionCallbackobject - the result of the successful executionpublic final void onFailure(Throwable t)
ExecutionCallbackonFailure in interface ExecutionCallbackt - the exception that is thrownCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.