public abstract class TargetClientRequest extends ClientRequest implements ExecutionCallback
callId, clientEngine, endpoint, operationService, serializationService, service
Constructor and Description |
---|
TargetClientRequest() |
Modifier and Type | Method and Description |
---|---|
protected Object |
filter(Object response) |
protected abstract InvocationBuilder |
getInvocationBuilder(Operation 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 abstract Operation |
prepareOperation() |
void |
process() |
getCallId, getClassVersion, getClientEngine, getDistributedObjectName, getDistributedObjectType, getEndpoint, getMethodName, getParameters, getService, getServiceName, read, readPortable, setCallId, setClientEngine, setEndpoint, setOperationService, setSerializationService, setService, write, writePortable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredPermission
getClassId, getFactoryId
public final void process() throws Exception
process
in class ClientRequest
Exception
protected abstract InvocationBuilder getInvocationBuilder(Operation op)
protected abstract Operation prepareOperation()
public final void onResponse(Object response)
ExecutionCallback
onResponse
in interface ExecutionCallback
response
- the result of the successful executionpublic final void onFailure(Throwable t)
ExecutionCallback
onFailure
in interface ExecutionCallback
t
- the exception that is thrownCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.