public class EntryOffloadableSetUnlockOperation extends KeyBasedMapOperation implements BackupAwareOperation, Notifier
EntryOperation| Modifier and Type | Field and Description |
|---|---|
protected long |
begin |
protected String |
caller |
protected EntryBackupProcessor |
entryBackupProcessor |
protected EntryEventType |
modificationType |
protected Data |
newValue |
protected Data |
oldValue |
dataKey, dataValue, maxIdle, threadId, ttlcreateRecordStoreOnDemand, disableWanReplicationEvent, mapContainer, mapEventPublisher, mapService, mapServiceContext, recordStorenameGENERIC_PARTITION_ID| Constructor and Description |
|---|
EntryOffloadableSetUnlockOperation() |
EntryOffloadableSetUnlockOperation(String name,
EntryEventType modificationType,
Data key,
Data oldValue,
Data newValue,
String caller,
long threadId,
long begin,
EntryBackupProcessor entryBackupProcessor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAsyncBackupCount()
The asynchronous backup count.
|
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
int |
getId()
Returns type identifier for this class.
|
WaitNotifyKey |
getNotifiedKey() |
String |
getServiceName() |
int |
getSyncBackupCount()
The synchronous backup count.
|
protected void |
readInternal(ObjectDataInput in) |
boolean |
returnsResponse()
Method is intended to be overridden.
|
void |
run()
Runs the operation.
|
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
boolean |
shouldNotify() |
protected void |
writeInternal(ObjectDataOutput out) |
getKey, getThreadId, getTtl, getValue, setThreadIdbeforeRun, canThisOpGenerateWANEvent, evict, getCallerProvenance, getFactoryId, getServiceNamespace, innerBeforeRun, invalidateAllKeysInNearCaches, invalidateNearCache, invalidateNearCache, isPostProcessing, publishLoadAsWanUpdate, publishWanRemove, publishWanUpdate, setMapContainer, setMapServicegetName, toStringafterRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, requiresExplicitServiceName, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdreadData, writeDataprotected Data newValue
protected Data oldValue
protected String caller
protected long begin
protected EntryEventType modificationType
protected EntryBackupProcessor entryBackupProcessor
public EntryOffloadableSetUnlockOperation()
public EntryOffloadableSetUnlockOperation(String name, EntryEventType modificationType, Data key, Data oldValue, Data newValue, String caller, long threadId, long begin, EntryBackupProcessor entryBackupProcessor)
public void run()
throws Exception
OperationOperation.run() or Operation.call() method should be implemented; not both.
Runs after wait-support, supposed to do actual operationrun in class OperationExceptionOperation.call()public boolean returnsResponse()
Operationtrue,
Operation.getResponse() will be called right after Operation.run() method.
If it returns false, Operation.sendResponse(Object) must be
called later to finish the operation.
In other words, true is for synchronous operation and
false is for asynchronous one.
Default implementation is synchronous operation (true).
returnsResponse in class Operationpublic Operation getBackupOperation()
BackupAwareOperationBackupOperation responsible for making the backup.getBackupOperation in interface BackupAwareOperationBackupOperation responsible for making the backup.public boolean shouldBackup()
BackupAwareOperationshouldBackup in interface BackupAwareOperationpublic int getAsyncBackupCount()
BackupAwareOperationgetAsyncBackupCount in interface BackupAwareOperationpublic int getSyncBackupCount()
BackupAwareOperationgetSyncBackupCount in interface BackupAwareOperationpublic boolean shouldNotify()
shouldNotify in interface Notifierpublic WaitNotifyKey getNotifiedKey()
getNotifiedKey in interface Notifierpublic String getServiceName()
getServiceName in class MapOperationpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class KeyBasedMapOperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class KeyBasedMapOperationIOExceptionCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.