@PrivateApi public final class OperationAccessor extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
deactivate(Operation op)
Marks the supplied operation as "not active".
|
static boolean |
hasActiveInvocation(Operation op) |
static void |
setCallerAddress(Operation op,
Address caller) |
static void |
setCallId(Operation op,
long callId)
Assigns the supplied call ID to the supplied operation, thereby activating it.
|
static void |
setCallTimeout(Operation op,
long callTimeout)
Sets the call timeout in milliseconds for the Operation.
|
static void |
setConnection(Operation op,
Connection connection) |
static void |
setInvocationTime(Operation op,
long invocationTime)
Sets the invocation time for the Operation.
|
public static void setConnection(Operation op, Connection connection)
public static void setCallId(Operation op, long callId)
public static boolean deactivate(Operation op)
public static boolean hasActiveInvocation(Operation op)
public static void setInvocationTime(Operation op, long invocationTime)
op
- the Operation that is updated for its invocation time.invocationTime
- the new invocation time.Operation.setInvocationTime(long)
public static void setCallTimeout(Operation op, long callTimeout)
op
- the Operation to updated for its call timeout.callTimeout
- the call timeout in ms.Operation.setCallTimeout(long)
Copyright © 2018 Hazelcast, Inc.. All rights reserved.