public class GenericOperation extends AbstractRingBufferOperation implements ReadonlyOperation
| Modifier and Type | Field and Description |
|---|---|
static byte |
OPERATION_CAPACITY |
static byte |
OPERATION_HEAD |
static byte |
OPERATION_REMAINING_CAPACITY |
static byte |
OPERATION_SIZE |
static byte |
OPERATION_TAIL |
nameGENERIC_PARTITION_ID| Constructor and Description |
|---|
GenericOperation() |
GenericOperation(String name,
byte operation) |
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns type identifier for this class.
|
Long |
getResponse()
Called if and only if
Operation.returnsResponse() returned true,
shortly after Operation.run() returns. |
protected void |
readInternal(ObjectDataInput in) |
void |
run()
Runs the operation.
|
protected void |
writeInternal(ObjectDataOutput out) |
getFactoryId, getName, getServiceName, getServiceNamespace, logError, toStringafterRun, beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, onExecutionFailure, onInvocationException, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadData, writeDatagetPartitionIdpublic static final byte OPERATION_SIZE
public static final byte OPERATION_TAIL
public static final byte OPERATION_HEAD
public static final byte OPERATION_REMAINING_CAPACITY
public static final byte OPERATION_CAPACITY
public GenericOperation()
public GenericOperation(String name, byte operation)
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()public Long getResponse()
OperationOperation.returnsResponse() returned true,
shortly after Operation.run() returns.getResponse in class Operationpublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class AbstractRingBufferOperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class AbstractRingBufferOperationIOExceptionCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.