public class AwaitOperation extends AbstractNamedOperation implements BlockingOperation, ReadonlyOperation
name
GENERIC_PARTITION_ID
Constructor and Description |
---|
AwaitOperation() |
AwaitOperation(String name,
long timeout) |
Modifier and Type | Method and Description |
---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
Object |
getResponse()
Called if and only if
Operation.returnsResponse() returned true , shortly after Operation.run()
returns. |
String |
getServiceName() |
WaitNotifyKey |
getWaitKey() |
void |
onWaitExpire() |
void |
run() |
boolean |
shouldWait() |
getName, readInternal, toString, writeInternal
afterRun, beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getWaitTimeout
getPartitionId
readData, writeData
public AwaitOperation()
public AwaitOperation(String name, long timeout)
public Object getResponse()
Operation
Operation.returnsResponse()
returned true
, shortly after Operation.run()
returns.getResponse
in class Operation
public WaitNotifyKey getWaitKey()
getWaitKey
in interface BlockingOperation
public boolean shouldWait()
shouldWait
in interface BlockingOperation
public void onWaitExpire()
onWaitExpire
in interface BlockingOperation
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public final String getServiceName()
getServiceName
in class Operation
public final int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.