public enum CallStatus extends Enum<CallStatus>
Operation.call()
.
Using the CallStatus the operation can control how the system will deal with the operation after it is executed. For example
when the CallStatus is DONE_RESPONSE
, a response can be send to the caller. But it also allows for
different behavior where no response is available yet e.g. when an operation gets offloaded.
Enum Constant and Description |
---|
DONE_RESPONSE
Signals that the Operation is done running and that a response is ready to be returned.
|
DONE_VOID
Signals that the Operation is done running, but no response will be returned.
|
OFFLOADED
Signals that the Operation has been offloaded e.g.
|
WAIT
Indicates that the call could not complete because waiting is required.
|
Modifier and Type | Method and Description |
---|---|
static CallStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CallStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CallStatus DONE_RESPONSE
public static final CallStatus DONE_VOID
public static final CallStatus WAIT
public static final CallStatus OFFLOADED
public static CallStatus[] values()
for (CallStatus c : CallStatus.values()) System.out.println(c);
public static CallStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018 Hazelcast, Inc.. All rights reserved.