Enum ChannelState

java.lang.Object
java.lang.Enum<ChannelState>
org.jboss.netty.channel.ChannelState
All Implemented Interfaces:
Serializable, Comparable<ChannelState>

public enum ChannelState extends 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:

DirectionStateValueMeaning
UpstreamOPEN trueThe channel is open.
UpstreamOPEN falseThe channel is closed.
UpstreamBOUND SocketAddressThe channel is bound to a local address.
UpstreamBOUND nullThe channel is unbound to a local address.
UpstreamCONNECTED SocketAddressThe channel is connected to a remote address.
UpstreamCONNECTED nullThe channel is disconnected from a remote address.
UpstreamINTEREST_OPS an integerThe channel interestOps has been changed.
DownstreamOPEN trueN/A
DownstreamOPEN falseClose the channel.
DownstreamBOUND SocketAddressBind the channel to the specified local address.
DownstreamBOUND nullUnbind the channel from the current local address.
DownstreamCONNECTED SocketAddressConnect the channel to the specified remote address.
DownstreamCONNECTED nullDisconnect the channel from the current remote address.
DownstreamINTEREST_OPS an integerChange the interestOps of the channel.

To see how an event is interpreted further, please refer to ChannelEvent.

  • Enum Constant Details

  • Constructor Details

    • ChannelState

      private ChannelState()
  • Method Details

    • values

      public static ChannelState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ChannelState valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null