public class BeforeAwaitOperation extends AbstractOperation implements Notifier, BackupAwareOperation
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_THREAD |
static long |
DEFAULT_LOCK_TTL |
protected Data |
key |
protected ObjectNamespace |
namespace |
protected Object |
response |
protected long |
threadId |
protected long |
ttl |
CALL_ID_LOCAL_SKIPPED, GENERIC_PARTITION_ID| Constructor and Description |
|---|
BeforeAwaitOperation() |
BeforeAwaitOperation(ObjectNamespace namespace,
Data key,
long threadId,
String conditionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeRun() |
int |
getAsyncBackupCount() |
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Data |
getKey() |
protected LockStoreImpl |
getLockStore() |
WaitNotifyKey |
getNotifiedKey() |
Object |
getResponse() |
String |
getServiceName() |
int |
getSyncBackupCount() |
protected void |
readInternal(ObjectDataInput in) |
void |
run() |
void |
setAsyncBackup(boolean asyncBackup) |
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
boolean |
shouldNotify() |
protected void |
writeInternal(ObjectDataOutput out) |
afterRun, returnsResponsegetCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getWaitTimeout, isUrgent, logError, onException, onExecutionFailure, onInvocationException, readData, setCallerUuid, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsyncBackupCount, getSyncBackupCountgetPartitionIdreadData, writeDatapublic static final long DEFAULT_LOCK_TTL
public static final int ANY_THREAD
protected ObjectNamespace namespace
protected Data key
protected long threadId
protected long ttl
protected transient Object response
public BeforeAwaitOperation()
public BeforeAwaitOperation(ObjectNamespace namespace, Data key, long threadId, String conditionId)
public void beforeRun()
throws Exception
beforeRun in class AbstractOperationExceptionpublic boolean shouldNotify()
shouldNotify in interface Notifierpublic boolean shouldBackup()
BackupAwareOperationshouldBackup in interface BackupAwareOperationpublic Operation getBackupOperation()
BackupAwareOperationBackupOperation responsible for making the backup.getBackupOperation in interface BackupAwareOperationBackupOperation responsible for making the backup.public WaitNotifyKey getNotifiedKey()
getNotifiedKey in interface Notifierpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableprotected void writeInternal(ObjectDataOutput out) throws IOException
IOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
IOExceptionpublic final Object getResponse()
getResponse in class AbstractOperationprotected final LockStoreImpl getLockStore()
public final int getSyncBackupCount()
public final int getAsyncBackupCount()
public final void setAsyncBackup(boolean asyncBackup)
public final String getServiceName()
getServiceName in class Operationpublic final Data getKey()
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializableCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.