com.hazelcast.cache.impl.operation
Class AbstractMutatingCacheOperation
java.lang.Object
com.hazelcast.spi.Operation
com.hazelcast.spi.AbstractOperation
com.hazelcast.spi.impl.AbstractNamedOperation
com.hazelcast.cache.impl.operation.AbstractMutatingCacheOperation
- All Implemented Interfaces:
- MutableOperation, DataSerializable, IdentifiedDataSerializable, BackupAwareOperation, RemotePropagatable<Operation>, PartitionAwareOperation
- Direct Known Subclasses:
- CacheEntryProcessorOperation, CacheGetAndRemoveOperation, CacheGetAndReplaceOperation, CachePutIfAbsentOperation, CachePutOperation, CacheRemoveOperation, CacheReplaceOperation
public abstract class AbstractMutatingCacheOperation
- extends AbstractNamedOperation
- implements BackupAwareOperation, MutableOperation
Base class for all mutable cache operations. Main purpose of this abstract class is providing the
completion event functionality.
This operation publishes COMPLETE event.
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, readData, run, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData |
completionId
protected int completionId
key
protected Data key
response
protected Object response
cache
protected transient ICacheRecordStore cache
backupRecord
protected transient CacheRecord backupRecord
AbstractMutatingCacheOperation
protected AbstractMutatingCacheOperation()
AbstractMutatingCacheOperation
protected AbstractMutatingCacheOperation(String name,
Data key,
int completionId)
getCompletionId
public int getCompletionId()
- Specified by:
getCompletionId
in interface MutableOperation
setCompletionId
public void setCompletionId(int completionId)
- Specified by:
setCompletionId
in interface MutableOperation
writeInternal
protected void writeInternal(ObjectDataOutput out)
throws IOException
- Throws:
IOException
readInternal
protected void readInternal(ObjectDataInput in)
throws IOException
- Throws:
IOException
beforeRun
public final void beforeRun()
throws Exception
- Overrides:
beforeRun
in class AbstractOperation
- Throws:
Exception
returnsResponse
public boolean returnsResponse()
- Specified by:
returnsResponse
in interface RemotePropagatable<Operation>
- Overrides:
returnsResponse
in class AbstractOperation
getResponse
public final Object getResponse()
- Overrides:
getResponse
in class AbstractOperation
onException
public ExceptionAction onException(Throwable throwable)
- Overrides:
onException
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
getSyncBackupCount
public final int getSyncBackupCount()
getAsyncBackupCount
public final int getAsyncBackupCount()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.