public abstract class AbstractCPMessageTask<P> extends AbstractMessageTask<P> implements ExecutionCallback<Object>
clientEngine, clientMessage, connection, endpoint, logger, nodeEngine, parameters, serializationService
Modifier | Constructor and Description |
---|---|
protected |
AbstractCPMessageTask(ClientMessage clientMessage,
Node node,
Connection connection) |
Modifier and Type | Method and Description |
---|---|
protected void |
invoke(CPGroupId groupId,
RaftOp op) |
void |
onFailure(Throwable t)
Called when an execution is completed with an error.
|
void |
onResponse(Object response)
Called when an execution is completed successfully.
|
protected void |
query(CPGroupId groupId,
RaftOp op,
QueryPolicy policy) |
decodeClientMessage, encodeResponse, getDistributedObjectName, getDistributedObjectType, getMemberBuildInfo, getMethodName, getParameters, getPartitionId, getService, getServiceName, handleProcessingFailure, isAdvancedNetworkEnabled, processMessage, requiresAuthentication, run, sendClientMessage, sendClientMessage, sendClientMessage, sendResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredPermission
protected AbstractCPMessageTask(ClientMessage clientMessage, Node node, Connection connection)
protected void query(CPGroupId groupId, RaftOp op, QueryPolicy policy)
public void onResponse(Object response)
ExecutionCallback
onResponse
in interface ExecutionCallback<Object>
response
- the result of the successful executionpublic void onFailure(Throwable t)
ExecutionCallback
onFailure
in interface ExecutionCallback<Object>
t
- the exception that is thrownCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.