public final class TargetInvocation extends Object
Invocation
evaluates a Operation Invocation for a particular target running on top of the
OperationServiceImpl
.Constructor and Description |
---|
TargetInvocation(NodeEngineImpl nodeEngine,
String serviceName,
Operation op,
Address target,
int tryCount,
long tryPauseMillis,
long callTimeout,
ExecutionCallback callback,
boolean resultDeserialized) |
Modifier and Type | Method and Description |
---|---|
Address |
getTarget() |
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture |
invoke() |
void |
invokeAsync() |
boolean |
isLocal()
Checks if this OperationResponseHandler is for a local invocation.
|
void |
run() |
void |
sendResponse(Operation op,
Object obj)
Sends a response.
|
String |
toString() |
public TargetInvocation(NodeEngineImpl nodeEngine, String serviceName, Operation op, Address target, int tryCount, long tryPauseMillis, long callTimeout, ExecutionCallback callback, boolean resultDeserialized)
public Address getTarget()
public boolean isLocal()
OperationResponseHandler
isLocal
in interface OperationResponseHandler
public final com.hazelcast.spi.impl.operationservice.impl.InvocationFuture invoke()
public final void invokeAsync()
public void sendResponse(Operation op, Object obj)
OperationResponseHandler
sendResponse
in interface OperationResponseHandler
op
- the operation that got executed.obj
- the response of the operation that got executed.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.