com.hazelcast.collection
Class CollectionOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.collection.CollectionOperation
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, RemotePropagatable<Operation>, PartitionAwareOperation
Direct Known Subclasses:
CollectionAddAllBackupOperation, CollectionAddBackupOperation, CollectionBackupAwareOperation, CollectionClearBackupOperation, CollectionContainsOperation, CollectionGetAllOperation, CollectionIsEmptyOperation, CollectionPrepareBackupOperation, CollectionRemoveBackupOperation, CollectionReserveAddOperation, CollectionReserveRemoveOperation, CollectionRollbackBackupOperation, CollectionSizeOperation, CollectionTransactionRollbackOperation, CollectionTxnAddBackupOperation, CollectionTxnRemoveBackupOperation, ListGetOperation, ListIndexOfOperation, ListSetBackupOperation, ListSubOperation

public abstract class CollectionOperation
extends Operation
implements PartitionAwareOperation, IdentifiedDataSerializable


Field Summary
protected  String name
           
protected  Object response
           
 
Constructor Summary
protected CollectionOperation()
           
protected CollectionOperation(String name)
           
 
Method Summary
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
protected  CollectionContainer getOrCreateContainer()
           
protected  ListContainer getOrCreateListContainer()
           
 Object getResponse()
           
 boolean hasEnoughCapacity(int delta)
           
protected  void publishEvent(ItemEventType eventType, Data data)
           
protected  void readInternal(ObjectDataInput in)
           
 boolean returnsResponse()
           
protected  void writeInternal(ObjectDataOutput out)
           
 
Methods inherited from class com.hazelcast.spi.Operation
afterRun, beforeRun, 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
 
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

response

protected transient Object response
Constructor Detail

CollectionOperation

protected CollectionOperation()

CollectionOperation

protected CollectionOperation(String name)
Method Detail

getOrCreateListContainer

protected final ListContainer getOrCreateListContainer()

getOrCreateContainer

protected final CollectionContainer getOrCreateContainer()

publishEvent

protected void publishEvent(ItemEventType eventType,
                            Data data)

hasEnoughCapacity

public boolean hasEnoughCapacity(int delta)

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

returnsResponse

public boolean returnsResponse()
Specified by:
returnsResponse in interface RemotePropagatable<Operation>
Specified by:
returnsResponse in class Operation

getResponse

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

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.