public class MapReplicationOperation extends Operation implements IdentifiedDataSerializable
| Modifier and Type | Field and Description |
|---|---|
protected MapNearCacheStateHolder |
mapNearCacheStateHolder |
protected MapReplicationStateHolder |
mapReplicationStateHolder |
protected WriteBehindStateHolder |
writeBehindStateHolder |
GENERIC_PARTITION_ID| Constructor and Description |
|---|
MapReplicationOperation() |
MapReplicationOperation(PartitionContainer container,
Collection<ServiceNamespace> namespaces,
int partitionId,
int replicaIndex) |
MapReplicationOperation(PartitionContainer container,
int partitionId,
int replicaIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun()
Is executed called after
Operation.run() or Operation.call() method completes normally and the operation is not
blocked, see CallStatus.WAIT. |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
String |
getServiceName() |
void |
onExecutionFailure(Throwable e)
Called when an
Exception/Error is thrown during
operation execution. |
protected void |
readInternal(ObjectDataInput in) |
void |
run()
Runs the operation.
|
protected void |
writeInternal(ObjectDataOutput out) |
beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getClientCallId, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, logError, onInvocationException, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setClientCallId, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadData, writeDataprotected final MapReplicationStateHolder mapReplicationStateHolder
protected final WriteBehindStateHolder writeBehindStateHolder
protected final MapNearCacheStateHolder mapNearCacheStateHolder
public MapReplicationOperation()
public MapReplicationOperation(PartitionContainer container, int partitionId, int replicaIndex)
public MapReplicationOperation(PartitionContainer container, Collection<ServiceNamespace> namespaces, int partitionId, int replicaIndex)
public void run()
OperationOperation.run() or Operation.call() method should be implemented; not both.
Runs after wait-support, supposed to do actual operationrun in class OperationOperation.call()public void afterRun()
throws Exception
OperationOperation.run() or Operation.call() method completes normally and the operation is not
blocked, see CallStatus.WAIT.
Runs after backups, before wait-notify.public void onExecutionFailure(Throwable e)
OperationException/Error is thrown during
operation execution.
By default this method does nothing. Operation implementations can override this behaviour according to their needs.
This method is called on node & thread that's executing the operation.
onExecutionFailure in class Operatione - Exception/Error thrown during operation executionpublic String getServiceName()
getServiceName in class Operationprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class OperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class OperationIOExceptionpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializableCopyright © 2019 Hazelcast, Inc.. All rights reserved.