com.hazelcast.spi.impl
Class BasicTargetInvocation
java.lang.Object
com.hazelcast.spi.impl.BasicTargetInvocation
- All Implemented Interfaces:
- ResponseHandler, Runnable
public final class BasicTargetInvocation
- extends Object
A BasicInvocation
evaluates a Operation Invocation for a particular target running on top of the
BasicOperationService
.
pendingResponseReceivedMillis
protected long pendingResponseReceivedMillis
- The time in millis when the response of the primary has been received.
callTimeout
protected final long callTimeout
nodeEngine
protected final NodeEngineImpl nodeEngine
serviceName
protected final String serviceName
op
protected final Operation op
partitionId
protected final int partitionId
replicaIndex
protected final int replicaIndex
tryCount
protected final int tryCount
tryPauseMillis
protected final long tryPauseMillis
logger
protected final ILogger logger
BasicTargetInvocation
public BasicTargetInvocation(NodeEngineImpl nodeEngine,
String serviceName,
Operation op,
Address target,
int tryCount,
long tryPauseMillis,
long callTimeout,
Callback<Object> callback,
String executorName,
boolean resultDeserialized)
getTarget
public Address getTarget()
getServiceName
public String getServiceName()
getReplicaIndex
public int getReplicaIndex()
getPartitionId
public int getPartitionId()
invoke
public final com.hazelcast.spi.impl.BasicInvocationFuture invoke()
sendResponse
public void sendResponse(Object obj)
- Specified by:
sendResponse
in interface ResponseHandler
isLocal
public boolean isLocal()
- Specified by:
isLocal
in interface ResponseHandler
isCallTarget
public boolean isCallTarget(MemberImpl leftMember)
notify
public void notify(Object obj)
signalOneBackupComplete
public void signalOneBackupComplete()
handleOperationTimeout
public void handleOperationTimeout()
handleBackupTimeout
public void handleBackupTimeout(long timeoutMillis)
run
public void run()
- Specified by:
run
in interface Runnable
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.