public final class OfferOperation extends QueueBackupAwareOperation implements BlockingOperation, Notifier, IdentifiedDataSerializable, MutatingOperation
responsenameGENERIC_PARTITION_ID| Constructor and Description |
|---|
OfferOperation() |
OfferOperation(String name,
long timeout,
Data data) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun() |
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.
|
WaitNotifyKey |
getNotifiedKey() |
WaitNotifyKey |
getWaitKey() |
void |
onWaitExpire() |
protected void |
readInternal(ObjectDataInput in) |
void |
run() |
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
boolean |
shouldNotify() |
boolean |
shouldWait() |
protected void |
writeInternal(ObjectDataOutput out) |
getAsyncBackupCount, getSyncBackupCountbeforeRun, getContainer, getQueueService, getResponse, getServiceName, hasListener, publishEventgetName, toStringexecutedLocally, 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, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWaitTimeoutreadData, writeDatagetPartitionIdgetNamepublic void afterRun()
throws Exception
afterRun in class QueueOperationExceptionpublic Operation getBackupOperation()
BackupAwareOperationBackupOperation responsible for making the backup.getBackupOperation in interface BackupAwareOperationBackupOperation responsible for making the backup.public boolean shouldBackup()
BackupAwareOperationshouldBackup in interface BackupAwareOperationpublic boolean shouldNotify()
shouldNotify in interface Notifierpublic WaitNotifyKey getNotifiedKey()
getNotifiedKey in interface Notifierpublic WaitNotifyKey getWaitKey()
getWaitKey in interface BlockingOperationpublic boolean shouldWait()
shouldWait in interface BlockingOperationpublic void onWaitExpire()
onWaitExpire in interface BlockingOperationpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablegetFactoryId in class QueueOperationpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class AbstractNamedOperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class AbstractNamedOperationIOExceptionCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.