public static enum MessageChannel.State extends Enum<MessageChannel.State>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
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 nameNullPointerException
- if the argument is nullCopyright © 2019 Neeve Research, LLC. All Rights Reserved.