com.hazelcast.concurrent.semaphore.operations
Class SemaphoreOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.spi.AbstractOperation
          extended by com.hazelcast.spi.impl.AbstractNamedOperation
              extended by com.hazelcast.concurrent.semaphore.operations.SemaphoreOperation
All Implemented Interfaces:
DataSerializable, RemotePropagatable<Operation>, PartitionAwareOperation
Direct Known Subclasses:
AvailableOperation, SemaphoreBackupAwareOperation, SemaphoreBackupOperation

public abstract class SemaphoreOperation
extends AbstractNamedOperation
implements PartitionAwareOperation


Field Summary
protected  int permitCount
           
protected  Object response
           
 
Fields inherited from class com.hazelcast.spi.impl.AbstractNamedOperation
name
 
Constructor Summary
protected SemaphoreOperation()
           
protected SemaphoreOperation(String name, int permitCount)
           
 
Method Summary
 Permit getPermit()
           
 Object getResponse()
           
 void readInternal(ObjectDataInput in)
           
 void writeInternal(ObjectDataOutput out)
           
 
Methods inherited from class com.hazelcast.spi.impl.AbstractNamedOperation
getName
 
Methods inherited from class com.hazelcast.spi.AbstractOperation
afterRun, beforeRun, returnsResponse
 
Methods inherited from class com.hazelcast.spi.Operation
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getExecutorName, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getServiceName, getWaitTimeout, isUrgent, logError, onException, readData, run, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.spi.PartitionAwareOperation
getPartitionId
 

Field Detail

permitCount

protected int permitCount

response

protected transient Object response
Constructor Detail

SemaphoreOperation

protected SemaphoreOperation()

SemaphoreOperation

protected SemaphoreOperation(String name,
                             int permitCount)
Method Detail

getResponse

public Object getResponse()
Overrides:
getResponse in class AbstractOperation

getPermit

public Permit getPermit()

writeInternal

public void writeInternal(ObjectDataOutput out)
                   throws IOException
Overrides:
writeInternal in class AbstractNamedOperation
Throws:
IOException

readInternal

public void readInternal(ObjectDataInput in)
                  throws IOException
Overrides:
readInternal in class AbstractNamedOperation
Throws:
IOException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.