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, ttl
createRecordStoreOnDemand, disableWanReplicationEvent, mapContainer, mapEventPublisher, mapService, mapServiceContext, recordStore
name
GENERIC_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, setThreadId
beforeRun, canThisOpGenerateWANEvent, evict, getCallerProvenance, getFactoryId, getServiceNamespace, innerBeforeRun, invalidateAllKeysInNearCaches, invalidateNearCache, invalidateNearCache, isPostProcessing, publishLoadAsWanUpdate, publishWanRemove, publishWanUpdate, setMapContainer, setMapService
getName, toString
afterRun, 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, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPartitionId
readData, writeData
protected 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
Operation
Operation.run()
or Operation.call()
method should be implemented; not both.
Runs after wait-support, supposed to do actual operationrun
in class Operation
Exception
Operation.call()
public boolean returnsResponse()
Operation
true
,
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 Operation
public Operation getBackupOperation()
BackupAwareOperation
BackupOperation
responsible for making the backup.getBackupOperation
in interface BackupAwareOperation
BackupOperation
responsible for making the backup.public boolean shouldBackup()
BackupAwareOperation
shouldBackup
in interface BackupAwareOperation
public int getAsyncBackupCount()
BackupAwareOperation
getAsyncBackupCount
in interface BackupAwareOperation
public int getSyncBackupCount()
BackupAwareOperation
getSyncBackupCount
in interface BackupAwareOperation
public boolean shouldNotify()
shouldNotify
in interface Notifier
public WaitNotifyKey getNotifiedKey()
getNotifiedKey
in interface Notifier
public String getServiceName()
getServiceName
in class MapOperation
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
protected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal
in class KeyBasedMapOperation
IOException
protected void readInternal(ObjectDataInput in) throws IOException
readInternal
in class KeyBasedMapOperation
IOException
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.