public class EntryOffloadableSetUnlockOperation extends KeyBasedMapOperation implements BackupAwareOperation, Notifier
EntryOperation
Modifier and Type | Field and Description |
---|---|
protected long |
begin |
protected UUID |
caller |
protected EntryProcessor |
entryBackupProcessor |
protected EntryEventType |
modificationType |
protected Data |
newValue |
protected Data |
oldValue |
dataKey, dataValue, threadId
createRecordStoreOnDemand, disposeDeferredBlocks, mapContainer, mapEventPublisher, mapService, mapServiceContext, recordStore
name
GENERIC_PARTITION_ID
Constructor and Description |
---|
EntryOffloadableSetUnlockOperation() |
EntryOffloadableSetUnlockOperation(String name,
EntryEventType modificationType,
Data key,
Data oldValue,
Data newValue,
UUID caller,
long threadId,
long begin,
EntryProcessor entryBackupProcessor) |
Modifier and Type | Method and Description |
---|---|
int |
getAsyncBackupCount()
The asynchronous backup count.
|
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
int |
getClassId()
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.
|
protected void |
runInternal() |
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
boolean |
shouldNotify() |
protected void |
writeInternal(ObjectDataOutput out) |
getKey, getThreadId, getValue, setThreadId
afterRun, afterRunInternal, beforeRun, disableWanReplicationEvent, evict, getCallerProvenance, getFactoryId, getServiceNamespace, innerBeforeRun, invalidateAllKeysInNearCaches, invalidateNearCache, invalidateNearCache, isPostProcessing, logError, onExecutionFailure, publishLoadAsWanUpdate, publishWanRemove, publishWanUpdate, run, setMapContainer, setMapService, wbqCapacityCounter
getName, toString
call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getClientCallId, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, onInvocationException, onSetCallId, readData, requiresExplicitServiceName, sendResponse, setCallerUuid, setClientCallId, 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 UUID caller
protected long begin
protected EntryEventType modificationType
protected EntryProcessor entryBackupProcessor
public EntryOffloadableSetUnlockOperation()
public EntryOffloadableSetUnlockOperation(String name, EntryEventType modificationType, Data key, Data oldValue, Data newValue, UUID caller, long threadId, long begin, EntryProcessor entryBackupProcessor)
protected void runInternal()
runInternal
in class MapOperation
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
If a call has not made any change, e.g. an AtomicLong increment with 0, no backup needs to be made.
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 getClassId()
IdentifiedDataSerializable
getClassId
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 © 2019 Hazelcast, Inc.. All rights reserved.