diff --git a/src/main/java/org/jboss/netty/channel/ChannelDownstreamHandler.java b/src/main/java/org/jboss/netty/channel/ChannelDownstreamHandler.java index e6b0c209df..1280045272 100644 --- a/src/main/java/org/jboss/netty/channel/ChannelDownstreamHandler.java +++ b/src/main/java/org/jboss/netty/channel/ChannelDownstreamHandler.java @@ -42,7 +42,7 @@ import java.net.SocketAddress; * *
Event type and condition | Interperatation | + *Event type and condition | Meaning | *||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{@link MessageEvent} | Send a message to the {@link Channel}. | diff --git a/src/main/java/org/jboss/netty/channel/ChannelState.java b/src/main/java/org/jboss/netty/channel/ChannelState.java index ccca3580ea..158ac1a88c 100644 --- a/src/main/java/org/jboss/netty/channel/ChannelState.java +++ b/src/main/java/org/jboss/netty/channel/ChannelState.java @@ -25,33 +25,57 @@ package org.jboss.netty.channel; import java.net.SocketAddress; /** - * Represents the current state of a {@link Channel} combined with the - * {@linkplain ChannelStateEvent#getValue() value} of a {@link ChannelStateEvent}. + * Represents the current or requested state of a {@link Channel}. + *
State | Value | Description | + *Direction | State | Value | Meaning | *
---|---|---|---|---|---|---|
{@link #OPEN} | {@code true} | The channel is open. | + *Upstream | {@link #OPEN} | {@code true} | The channel is open. | *
{@link #OPEN} | {@code false} | The channel is closed. | + *Upstream | {@link #OPEN} | {@code false} | The channel is closed. | *
{@link #BOUND} | {@link SocketAddress} | The channel is bound to a local address. | + *Upstream | {@link #BOUND} | {@link SocketAddress} | The channel is bound to a local address. | *
{@link #BOUND} | {@code null} | The channel is unbound to a local address. | + *Upstream | {@link #BOUND} | {@code null} | The channel is unbound to a local address. | *
{@link #CONNECTED} | {link SocketAddress} | The channel is connected to a remote address. | + *Upstream | {@link #CONNECTED} | {@link SocketAddress} | The channel is connected to a remote address. | *
{@link #CONNECTED} | {@code null} | The channel is disconnected from a remote address. | + *Upstream | {@link #CONNECTED} | {@code null} | The channel is disconnected from a remote address. | *
{@link #INTEREST_OPS} | an integer | The channel interestOps has been changed. | + *Upstream | {@link #INTEREST_OPS} | an integer | The channel interestOps has been changed. | + *
Downstream | {@link #OPEN} | {@code true} | N/A | + *|||
Downstream | {@link #OPEN} | {@code false} | Close the channel. | + *|||
Downstream | {@link #BOUND} | {@link SocketAddress} | Bind the channel to the specified local address. | + *|||
Downstream | {@link #BOUND} | {@code null} | Unbind the channel from the current local address. | + *|||
Downstream | {@link #CONNECTED} | {@link SocketAddress} | Connect the channel to the specified remote address. | + *|||
Downstream | {@link #CONNECTED} | {@code null} | Disconnect the channel from the current remote address. | + *|||
Downstream | {@link #INTEREST_OPS} | an integer | Change the interestOps of the channel. | *