public final class UnlockIfLeaseExpiredOperation extends UnlockOperation
ANY_THREAD, key, leaseTime, namespace, response, threadIdGENERIC_PARTITION_ID| Constructor and Description |
|---|
UnlockIfLeaseExpiredOperation() |
UnlockIfLeaseExpiredOperation(ObjectNamespace namespace,
Data key,
int version) |
| 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()
This operation runs on both primary and backup
If it is running on backup we should not send a backup operation
|
protected void |
writeInternal(ObjectDataOutput out) |
afterRun, forceUnlock, getBackupOperation, getNotifiedKey, shouldNotify, unlockgetAsyncBackupCount, getFactoryId, getKey, getLockStore, getName, getReferenceCallId, getResponse, getServiceName, getServiceNamespace, getSyncBackupCount, onSetCallId, setAsyncBackup, setReferenceCallId, toStringbeforeRun, 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, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsyncBackupCount, getSyncBackupCountgetPartitionIdreadData, writeDatapublic UnlockIfLeaseExpiredOperation()
public UnlockIfLeaseExpiredOperation(ObjectNamespace namespace, Data key, int version)
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()
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 getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablegetId in class UnlockOperationCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.