public final class UnlockIfLeaseExpiredOperation extends UnlockOperation implements SplitBrainProtectionCheckAwareOperation
ANY_THREAD, isClient, key, leaseTime, namespace, response, threadId
GENERIC_PARTITION_ID
Constructor and Description |
---|
UnlockIfLeaseExpiredOperation() |
UnlockIfLeaseExpiredOperation(ObjectNamespace namespace,
Data key,
int version) |
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()
This operation runs on both primary and backup
If it is running on backup we should not send a backup operation
|
boolean |
shouldCheckSplitBrainProtection()
Returns
true if the split brain protection check should be performed. |
protected void |
writeInternal(ObjectDataOutput out) |
forceUnlock, getBackupOperation, getNotifiedKey, shouldNotify, unlock
getAsyncBackupCount, getFactoryId, getKey, getLockStore, getName, getReferenceCallId, getResponse, getServiceName, getServiceNamespace, getSyncBackupCount, interceptLockOperation, onSetCallId, setAsyncBackup, setReferenceCallId, toString
afterRun, 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, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAsyncBackupCount, getSyncBackupCount
getPartitionId
readData, writeData
public UnlockIfLeaseExpiredOperation()
public UnlockIfLeaseExpiredOperation(ObjectNamespace namespace, Data key, int version)
public void run()
Operation
Operation.run()
or Operation.call()
method should be implemented; not both.
Runs after wait-support, supposed to do actual operationrun
in class UnlockOperation
Operation.call()
public boolean shouldBackup()
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 getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
getClassId
in class UnlockOperation
public boolean shouldCheckSplitBrainProtection()
SplitBrainProtectionCheckAwareOperation
true
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 SplitBrainProtectionCheckAwareOperation
Copyright © 2019 Hazelcast, Inc.. All rights reserved.