public class LocalLockCleanupOperation extends UnlockOperation implements Notifier, BackupAwareOperation, QuorumCheckAwareOperation
ANY_THREAD, key, leaseTime, namespace, response, threadId
GENERIC_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,
String uuid) |
Modifier and Type | Method and Description |
---|---|
int |
getId()
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 |
shouldCheckQuorum()
Returns
true if the quorum check should be performed. |
protected void |
writeInternal(ObjectDataOutput out) |
afterRun, forceUnlock, getBackupOperation, getNotifiedKey, shouldNotify, unlock
getAsyncBackupCount, getFactoryId, getKey, getLockStore, getName, getReferenceCallId, getResponse, getServiceName, getServiceNamespace, getSyncBackupCount, interceptLockOperation, onSetCallId, setAsyncBackup, setReferenceCallId, toString
beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNotifiedKey, shouldNotify
getAsyncBackupCount, getBackupOperation, getSyncBackupCount
getPartitionId
readData, writeData
public LocalLockCleanupOperation()
public LocalLockCleanupOperation(ObjectNamespace namespace, Data key, String uuid)
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 UnlockOperation
Exception
Operation.call()
public boolean shouldBackup()
BackupAwareOperation
shouldBackup
in interface BackupAwareOperation
shouldBackup
in class UnlockOperation
protected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal
in class UnlockOperation
IOException
protected void readInternal(ObjectDataInput in) throws IOException
readInternal
in class UnlockOperation
IOException
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
getId
in class UnlockOperation
public boolean shouldCheckQuorum()
QuorumCheckAwareOperation
true
if the quorum check should be performed. Operations
which require a quorum check may get rejected if there are not enough
members in the cluster.shouldCheckQuorum
in interface QuorumCheckAwareOperation
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.