public class SemaphoreDetachMemberOperation extends SemaphoreBackupAwareOperation implements Notifier
permitCount, responsenameGENERIC_PARTITION_ID| Constructor and Description |
|---|
SemaphoreDetachMemberOperation() |
SemaphoreDetachMemberOperation(String name,
String detachedMemberUuid) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAsyncBackupCount()
The asynchronous backup count.
|
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
int |
getId()
Returns type identifier for this class.
|
WaitNotifyKey |
getNotifiedKey() |
int |
getSyncBackupCount()
The synchronous backup count.
|
void |
readInternal(ObjectDataInput in) |
void |
run()
Runs the operation.
|
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
boolean |
shouldNotify() |
void |
writeInternal(ObjectDataOutput out) |
getFactoryId, getResponse, getSemaphoreContainer, getServiceNamegetName, toStringafterRun, beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdreadData, writeDatapublic 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 OperationExceptionOperation.call()public boolean shouldBackup()
BackupAwareOperationshouldBackup in interface BackupAwareOperationpublic int getAsyncBackupCount()
BackupAwareOperationgetAsyncBackupCount in interface BackupAwareOperationgetAsyncBackupCount in class SemaphoreBackupAwareOperationpublic int getSyncBackupCount()
BackupAwareOperationgetSyncBackupCount in interface BackupAwareOperationgetSyncBackupCount in class SemaphoreBackupAwareOperationpublic Operation getBackupOperation()
BackupAwareOperationBackupOperation responsible for making the backup.getBackupOperation in interface BackupAwareOperationBackupOperation responsible for making the backup.public boolean shouldNotify()
shouldNotify in interface Notifierpublic WaitNotifyKey getNotifiedKey()
getNotifiedKey in interface Notifierpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class SemaphoreOperationIOExceptionpublic void readInternal(ObjectDataInput in) throws IOException
readInternal in class SemaphoreOperationIOExceptionCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.