public abstract class SemaphoreOperation extends AbstractNamedOperation implements PartitionAwareOperation, IdentifiedDataSerializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
permitCount |
protected Object |
response |
nameGENERIC_PARTITION_ID| Modifier | Constructor and Description |
|---|---|
protected |
SemaphoreOperation() |
protected |
SemaphoreOperation(String name,
int permitCount) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
Object |
getResponse()
Called if and only if
Operation.returnsResponse() returned true,
shortly after Operation.run() returns. |
SemaphoreContainer |
getSemaphoreContainer() |
String |
getServiceName() |
void |
readInternal(ObjectDataInput in) |
void |
writeInternal(ObjectDataOutput out) |
getName, 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, run, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdgetIdreadData, writeDataprotected int permitCount
protected transient Object response
protected SemaphoreOperation()
protected SemaphoreOperation(String name, int permitCount)
public String getServiceName()
getServiceName in class Operationpublic Object getResponse()
OperationOperation.returnsResponse() returned true,
shortly after Operation.run() returns.getResponse in class Operationpublic SemaphoreContainer getSemaphoreContainer()
public final int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class AbstractNamedOperationIOExceptionpublic void readInternal(ObjectDataInput in) throws IOException
readInternal in class AbstractNamedOperationIOExceptionCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.