|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MessageChannel.State>
com.neeve.sma.MessageChannel.State
public static enum MessageChannel.State
Enumerates the different channel states.
Enum Constant Summary | |
---|---|
Closed
Indicates that a channel has been closed. |
|
Closing
Indicates that a channel is being closed A channel transitions to this state when it in the process of being closed |
|
Failed
Indicates that a channel has failed. |
|
Open
Indicates a channel is open and ready for operation. |
Method Summary | |
---|---|
static MessageChannel.State |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MessageChannel.State[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MessageChannel.State Open
public static final MessageChannel.State Closing
A channel transitions to this state when it in the process of being closed
public static final MessageChannel.State Failed
A channel transitions to this state when it's container binding fails and before the binding dispatches the failure event. This state can only be set in channels whose bindings supports failure.
public static final MessageChannel.State Closed
A channel transitions to this state when explicitly closed by the user or implicitly closed by a binding.
Method Detail |
---|
public static MessageChannel.State[] values()
for (MessageChannel.State c : MessageChannel.State.values()) System.out.println(c);
public static MessageChannel.State valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |