public class RegistrationOperation extends Operation
GENERIC_PARTITION_ID
Constructor and Description |
---|
RegistrationOperation() |
RegistrationOperation(Registration registration,
int memberListVersion) |
Modifier and Type | Method and Description |
---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
Object |
getResponse()
Called if and only if
Operation.returnsResponse() returned true ,
shortly after Operation.run() returns. |
ExceptionAction |
onInvocationException(Throwable throwable)
Called when an Exception/Error is thrown
during an invocation.
|
protected void |
readInternal(ObjectDataInput in) |
protected void |
readInternalImpl(ObjectDataInput in) |
void |
run()
Runs the operation.
|
protected void |
runInternal() |
protected void |
writeInternal(ObjectDataOutput out) |
protected void |
writeInternalImpl(ObjectDataOutput out) |
afterRun, beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getServiceName, getWaitTimeout, isUrgent, logError, onExecutionFailure, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, toString, validatesTarget, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
readData, writeData
public RegistrationOperation()
public RegistrationOperation(Registration registration, int memberListVersion)
public Object getResponse()
Operation
Operation.returnsResponse()
returned true
,
shortly after Operation.run()
returns.getResponse
in class Operation
protected void writeInternalImpl(ObjectDataOutput out) throws IOException
IOException
protected void readInternalImpl(ObjectDataInput in) throws IOException
IOException
public int getId()
IdentifiedDataSerializable
public final 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()
protected final void writeInternal(ObjectDataOutput out) throws IOException
writeInternal
in class Operation
IOException
protected final void readInternal(ObjectDataInput in) throws IOException
readInternal
in class Operation
IOException
public ExceptionAction onInvocationException(Throwable throwable)
Operation
onInvocationException
in class Operation
throwable
- Exception/Error thrown during
invocationpublic int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.