public static enum MessageFuture.Result extends Enum<MessageFuture.Result>
Enum Constant and Description |
---|
EXCEPTION
The message request failed due to an exception; the cause
is available via
MessageFuture.cause() . |
OFM_ERROR
The message request failed due to an error returned from the
datapath; the
error message is available via
MessageFuture.reply() . |
SUCCESS
The message request was a success; the reply message is
available via
MessageFuture.reply() . |
SUCCESS_NO_REPLY
The message request was a success; there is no associated reply.
|
TIMEOUT
The message request failed due to a timeout; the datapath did
not respond within a reasonable amount of time.
|
UNSATISFIED
The message future has not yet been satisfied.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFailure()
Returns whether or not the result was a failure of any kind.
|
boolean |
isSuccess()
Returns whether or not the result was a success of any kind.
|
static MessageFuture.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageFuture.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageFuture.Result UNSATISFIED
public static final MessageFuture.Result SUCCESS
MessageFuture.reply()
.public static final MessageFuture.Result SUCCESS_NO_REPLY
public static final MessageFuture.Result OFM_ERROR
error message
is available via
MessageFuture.reply()
.public static final MessageFuture.Result EXCEPTION
MessageFuture.cause()
.public static final MessageFuture.Result TIMEOUT
public static MessageFuture.Result[] values()
for (MessageFuture.Result c : MessageFuture.Result.values()) System.out.println(c);
public static MessageFuture.Result 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 nullpublic boolean isSuccess()
SUCCESS
or
SUCCESS_NO_REPLY
.Copyright © 2015. All Rights Reserved.