|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ChannelState>
org.jboss.netty.channel.ChannelState
public enum ChannelState
The current or future state of a Channel
.
The state of a Channel
is interpreted differently depending on the
value of a ChannelStateEvent
and the direction of the event in a ChannelPipeline
:
Direction | State | Value | Meaning |
---|---|---|---|
Upstream | OPEN | true | The channel is open. |
Upstream | OPEN | false | The channel is closed. |
Upstream | BOUND | SocketAddress | The channel is bound to a local address. |
Upstream | BOUND | null | The channel is unbound to a local address. |
Upstream | CONNECTED | SocketAddress | The channel is connected to a remote address. |
Upstream | CONNECTED | null | The channel is disconnected from a remote address. |
Upstream | INTEREST_OPS | an integer | The channel interestOps has been changed. |
Downstream | OPEN | true | N/A |
Downstream | OPEN | false | Close the channel. |
Downstream | BOUND | SocketAddress | Bind the channel to the specified local address. |
Downstream | BOUND | null | Unbind the channel from the current local address. |
Downstream | CONNECTED | SocketAddress | Connect the channel to the specified remote address. |
Downstream | CONNECTED | null | Disconnect the channel from the current remote address. |
Downstream | INTEREST_OPS | an integer | Change the interestOps of the channel. |
To see how an event is interpreted further, please refer to ChannelEvent
.
Enum Constant Summary | |
---|---|
BOUND
Represents a Channel 's bound property |
|
CONNECTED
Represents a Channel 's connected
property |
|
INTEREST_OPS
Represents a Channel 's interestOps
property |
|
OPEN
Represents a Channel 's open property |
Method Summary | |
---|---|
static ChannelState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ChannelState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, 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 ChannelState OPEN
Channel
's open
property
public static final ChannelState BOUND
Channel
's bound
property
public static final ChannelState CONNECTED
Channel
's connected
property
public static final ChannelState INTEREST_OPS
Channel
's interestOps
property
Method Detail |
---|
public static ChannelState[] values()
for (ChannelState c : ChannelState.values()) System.out.println(c);
public static ChannelState 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 |