com.hazelcast.collection.impl.collection.operations
public abstract class CollectionOperation extends Operation implements PartitionAwareOperation, IdentifiedDataSerializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected Object |
response |
CALL_ID_LOCAL_SKIPPED, GENERIC_PARTITION_ID| Modifier | Constructor and Description |
|---|---|
protected |
CollectionOperation() |
protected |
CollectionOperation(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun() |
void |
beforeRun() |
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) |
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getServiceName, getWaitTimeout, isUrgent, logError, onException, readData, run, setCallerUuid, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdgetIdreadData, writeDataprotected CollectionOperation()
protected CollectionOperation(String name)
public void beforeRun()
throws Exception
public void afterRun()
throws Exception
protected final ListContainer getOrCreateListContainer()
protected final CollectionContainer getOrCreateContainer()
protected void publishEvent(ItemEventType eventType, Data data)
public boolean hasEnoughCapacity(int delta)
public boolean returnsResponse()
returnsResponse in class Operationpublic Object getResponse()
getResponse in class Operationpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializableprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class OperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class OperationIOExceptionCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.