public class TxnPollOperation extends BaseTxnQueueOperation implements Notifier
name, responseBITMASK_LOAD_ALL_WITH_USER_SUPPLIED_KEYS, GENERIC_PARTITION_ID| Constructor and Description |
|---|
TxnPollOperation() |
TxnPollOperation(String name,
long itemId) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun() |
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
int |
getId()
Returns type identifier for this class.
|
WaitNotifyKey |
getNotifiedKey() |
boolean |
isRemoveOperation() |
void |
run() |
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
boolean |
shouldNotify() |
getItemId, readInternal, writeInternalgetAsyncBackupCount, getSyncBackupCountbeforeRun, getContainer, getFactoryId, getName, getQueueService, getResponse, getServiceName, hasListener, publishEvent, returnsResponsegetCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isFlagSet, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, sendResponse, setCallerUuid, setFlag, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdreadData, writeDatapublic TxnPollOperation()
public TxnPollOperation(String name, long itemId)
public void afterRun()
throws Exception
afterRun in class QueueOperationExceptionpublic boolean shouldNotify()
shouldNotify in interface Notifierpublic WaitNotifyKey getNotifiedKey()
getNotifiedKey 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 boolean isRemoveOperation()
isRemoveOperation in interface CollectionTxnOperationpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.