public class ClearOperation extends AbstractNamedSerializableOperation implements MutatingOperation
ReplicatedMap.clear() is called.GENERIC_PARTITION_ID| Constructor and Description |
|---|
ClearOperation() |
ClearOperation(String mapName,
boolean replicateClear) |
ClearOperation(String mapName,
boolean replicateClear,
long version) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
protected Collection<Address> |
getMemberAddresses() |
String |
getName()
Returns the name of the distributed data structure.
|
Object |
getResponse()
Called if and only if
Operation.returnsResponse() returned true,
shortly after Operation.run() returns. |
String |
getServiceName() |
protected void |
readInternal(ObjectDataInput in) |
void |
run()
Runs the operation.
|
protected void |
writeInternal(ObjectDataOutput out) |
afterRun, beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadData, writeDatapublic ClearOperation()
public ClearOperation(String mapName, boolean replicateClear)
public ClearOperation(String mapName, boolean replicateClear, long version)
public void run()
throws Exception
OperationOperation.run() or Operation.call() method should be implemented; not both.
Runs after wait-support, supposed to do actual operationrun in class OperationExceptionOperation.call()protected Collection<Address> getMemberAddresses()
public Object getResponse()
OperationOperation.returnsResponse() returned true,
shortly after Operation.run() returns.getResponse in class Operationpublic String getServiceName()
getServiceName in class Operationpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablegetFactoryId in class AbstractSerializableOperationpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class OperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class OperationIOExceptionpublic String getName()
NamedOperationgetName in interface NamedOperationCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.