public class LocalLockCleanupOperation extends UnlockOperation implements Notifier, BackupAwareOperation, SplitBrainProtectionCheckAwareOperation
ANY_THREAD, isClient, key, leaseTime, namespace, response, threadIdGENERIC_PARTITION_ID| Constructor and Description |
|---|
LocalLockCleanupOperation()
This constructor should not be used to obtain an instance of this class; it exists to fulfill IdentifiedDataSerializable
coding conventions.
|
LocalLockCleanupOperation(ObjectNamespace namespace,
Data key,
UUID uuid) |
| Modifier and Type | Method and Description |
|---|---|
int |
getClassId()
Returns type identifier for this class.
|
protected void |
readInternal(ObjectDataInput in) |
void |
run()
Runs the operation.
|
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
boolean |
shouldCheckSplitBrainProtection()
Returns
true if the split brain protection check should be performed. |
protected void |
writeInternal(ObjectDataOutput out) |
forceUnlock, getBackupOperation, getNotifiedKey, shouldNotify, unlockgetAsyncBackupCount, getFactoryId, getKey, getLockStore, getName, getReferenceCallId, getResponse, getServiceName, getServiceNamespace, getSyncBackupCount, interceptLockOperation, onSetCallId, setAsyncBackup, setReferenceCallId, toStringafterRun, beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getClientCallId, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setClientCallId, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNotifiedKey, shouldNotifygetAsyncBackupCount, getBackupOperation, getSyncBackupCountgetPartitionIdreadData, writeDatapublic LocalLockCleanupOperation()
public LocalLockCleanupOperation(ObjectNamespace namespace, Data key, UUID uuid)
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 UnlockOperationExceptionOperation.call()public boolean shouldBackup()
BackupAwareOperationIf a call has not made any change, e.g. an AtomicLong increment with 0, no backup needs to be made.
shouldBackup in interface BackupAwareOperationshouldBackup in class UnlockOperationprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class UnlockOperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class UnlockOperationIOExceptionpublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializablegetClassId in class UnlockOperationpublic boolean shouldCheckSplitBrainProtection()
SplitBrainProtectionCheckAwareOperationtrue if the split brain protection check should be performed. Operations
which require a split brain protection check may get rejected if there are not enough
members in the cluster.shouldCheckSplitBrainProtection in interface SplitBrainProtectionCheckAwareOperationCopyright © 2019 Hazelcast, Inc.. All rights reserved.