com.hazelcast.concurrent.atomicreference.operations
Class AtomicReferenceBaseOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.concurrent.atomicreference.operations.AtomicReferenceBaseOperation
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, PartitionAwareOperation
Direct Known Subclasses:
ApplyOperation, AtomicReferenceBackupAwareOperation, ContainsOperation, GetOperation, IsNullOperation, SetBackupOperation

public abstract class AtomicReferenceBaseOperation
extends Operation
implements PartitionAwareOperation, IdentifiedDataSerializable


Field Summary
protected  String name
           
 
Fields inherited from class com.hazelcast.spi.Operation
CALL_ID_LOCAL_SKIPPED, GENERIC_PARTITION_ID
 
Constructor Summary
AtomicReferenceBaseOperation()
           
AtomicReferenceBaseOperation(String name)
           
 
Method Summary
 void afterRun()
           
 void beforeRun()
           
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
 AtomicReferenceContainer getReferenceContainer()
           
 Object getResponse()
           
 String getServiceName()
           
protected  void readInternal(ObjectDataInput in)
           
 boolean returnsResponse()
           
protected  void writeInternal(ObjectDataOutput out)
           
 
Methods inherited from class com.hazelcast.spi.Operation
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getWaitTimeout, isUrgent, logError, onException, readData, run, setCallerUuid, 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
 
Methods inherited from interface com.hazelcast.nio.serialization.IdentifiedDataSerializable
getId
 
Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable
readData, writeData
 

Field Detail

name

protected String name
Constructor Detail

AtomicReferenceBaseOperation

public AtomicReferenceBaseOperation()

AtomicReferenceBaseOperation

public AtomicReferenceBaseOperation(String name)
Method Detail

getServiceName

public String getServiceName()
Overrides:
getServiceName in class Operation

getReferenceContainer

public AtomicReferenceContainer getReferenceContainer()

beforeRun

public void beforeRun()
               throws Exception
Specified by:
beforeRun in class Operation
Throws:
Exception

afterRun

public void afterRun()
              throws Exception
Specified by:
afterRun in class Operation
Throws:
Exception

getResponse

public Object getResponse()
Specified by:
getResponse in class Operation

returnsResponse

public boolean returnsResponse()
Specified by:
returnsResponse in class Operation

getFactoryId

public int getFactoryId()
Description copied from interface: IdentifiedDataSerializable
Returns DataSerializableFactory factory id for this class.

Specified by:
getFactoryId in interface IdentifiedDataSerializable
Returns:
factory id

writeInternal

protected void writeInternal(ObjectDataOutput out)
                      throws IOException
Specified by:
writeInternal in class Operation
Throws:
IOException

readInternal

protected void readInternal(ObjectDataInput in)
                     throws IOException
Specified by:
readInternal in class Operation
Throws:
IOException


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