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 |
name
GENERIC_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, toString
afterRun, 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, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
readData, writeData
getPartitionId
public 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
Operation
Operation.run()
or Operation.call()
method should be implemented; not both.
Runs after wait-support, supposed to do actual operationrun
in class Operation
Exception
Operation.call()
public Long getResponse()
Operation
Operation.returnsResponse()
returned true
,
shortly after Operation.run()
returns.getResponse
in class Operation
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
protected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal
in class AbstractRingBufferOperation
IOException
protected void readInternal(ObjectDataInput in) throws IOException
readInternal
in class AbstractRingBufferOperation
IOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.