|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.spi.InvocationBuilder
public abstract class InvocationBuilder
The InvocationBuilder is responsible for building an invocation of an operation and invoking it. The original design exposed the actual Invocation class, but this will limit flexibility since the whole invocation can't be changed or fully removed easily.
Field Summary | |
---|---|
protected Callback<Object> |
callback
|
protected long |
callTimeout
|
static long |
DEFAULT_CALL_TIMEOUT
|
static boolean |
DEFAULT_DESERIALIZE_RESULT
|
static int |
DEFAULT_REPLICA_INDEX
|
static int |
DEFAULT_TRY_COUNT
|
static long |
DEFAULT_TRY_PAUSE_MILLIS
|
protected String |
executorName
|
protected com.hazelcast.spi.impl.NodeEngineImpl |
nodeEngine
|
protected Operation |
op
|
protected int |
partitionId
|
protected int |
replicaIndex
|
protected boolean |
resultDeserialized
|
protected String |
serviceName
|
protected com.hazelcast.nio.Address |
target
|
protected int |
tryCount
|
protected long |
tryPauseMillis
|
Constructor Summary | |
---|---|
InvocationBuilder(com.hazelcast.spi.impl.NodeEngineImpl nodeEngine,
String serviceName,
Operation op,
int partitionId,
com.hazelcast.nio.Address target)
|
Method Summary | |
---|---|
Callback |
getCallback()
|
long |
getCallTimeout()
|
String |
getExecutorName()
Gets the name of the Executor to use. |
Operation |
getOp()
|
int |
getPartitionId()
|
int |
getReplicaIndex()
|
String |
getServiceName()
|
com.hazelcast.nio.Address |
getTarget()
|
int |
getTryCount()
|
long |
getTryPauseMillis()
|
abstract InternalCompletableFuture |
invoke()
|
boolean |
isResultDeserialized()
Checks if the Future should automatically deserialize the result. |
InvocationBuilder |
setCallback(Callback<Object> callback)
|
InvocationBuilder |
setCallTimeout(long callTimeout)
|
InvocationBuilder |
setExecutorName(String executorName)
Sets the executor name. |
InvocationBuilder |
setReplicaIndex(int replicaIndex)
|
InvocationBuilder |
setResultDeserialized(boolean resultDeserialized)
Sets the automatic deserialized option for the result. |
InvocationBuilder |
setTryCount(int tryCount)
|
InvocationBuilder |
setTryPauseMillis(long tryPauseMillis)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_CALL_TIMEOUT
public static final int DEFAULT_REPLICA_INDEX
public static final int DEFAULT_TRY_COUNT
public static final long DEFAULT_TRY_PAUSE_MILLIS
public static final boolean DEFAULT_DESERIALIZE_RESULT
protected final com.hazelcast.spi.impl.NodeEngineImpl nodeEngine
protected final String serviceName
protected final Operation op
protected final int partitionId
protected final com.hazelcast.nio.Address target
protected Callback<Object> callback
protected long callTimeout
protected int replicaIndex
protected int tryCount
protected long tryPauseMillis
protected String executorName
protected boolean resultDeserialized
Constructor Detail |
---|
public InvocationBuilder(com.hazelcast.spi.impl.NodeEngineImpl nodeEngine, String serviceName, Operation op, int partitionId, com.hazelcast.nio.Address target)
Method Detail |
---|
public String getExecutorName()
public InvocationBuilder setExecutorName(String executorName)
executorName
- the name of the executor.public InvocationBuilder setReplicaIndex(int replicaIndex)
public boolean isResultDeserialized()
Data
to be returned, but the deserialized object. But in some
cases you want to get the raw Data object.
Defaults to true.
public InvocationBuilder setResultDeserialized(boolean resultDeserialized)
resultDeserialized
- true if data
isResultDeserialized()
public InvocationBuilder setTryCount(int tryCount)
public InvocationBuilder setTryPauseMillis(long tryPauseMillis)
public InvocationBuilder setCallTimeout(long callTimeout)
public String getServiceName()
public Operation getOp()
public int getReplicaIndex()
public int getTryCount()
public long getTryPauseMillis()
public com.hazelcast.nio.Address getTarget()
public int getPartitionId()
public long getCallTimeout()
public Callback getCallback()
public InvocationBuilder setCallback(Callback<Object> callback)
public abstract InternalCompletableFuture invoke()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |