public class DownstreamChannelStateEvent extends java.lang.Object implements ChannelStateEvent
ChannelStateEvent implementation.| Modifier and Type | Field and Description |
|---|---|
private Channel |
channel |
private ChannelFuture |
future |
private ChannelState |
state |
private java.lang.Object |
value |
| Constructor and Description |
|---|
DownstreamChannelStateEvent(Channel channel,
ChannelFuture future,
ChannelState state,
java.lang.Object value)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel()
Returns the
Channel which is associated with this event. |
ChannelFuture |
getFuture()
Returns the
ChannelFuture which is associated with this event. |
ChannelState |
getState()
Returns the changed property of the
Channel. |
java.lang.Object |
getValue()
Returns the value of the changed property of the
Channel. |
java.lang.String |
toString() |
private final Channel channel
private final ChannelFuture future
private final ChannelState state
private final java.lang.Object value
public DownstreamChannelStateEvent(Channel channel, ChannelFuture future, ChannelState state, java.lang.Object value)
public Channel getChannel()
ChannelEventChannel which is associated with this event.getChannel in interface ChannelEventpublic ChannelFuture getFuture()
ChannelEventChannelFuture which is associated with this event.
If this event is an upstream event, this method will always return a
SucceededChannelFuture because the event has occurred already.
If this event is a downstream event (i.e. I/O request), the returned
future will be notified when the I/O request succeeds or fails.getFuture in interface ChannelEventpublic ChannelState getState()
ChannelStateEventChannel.getState in interface ChannelStateEventpublic java.lang.Object getValue()
ChannelStateEventChannel.
Please refer to ChannelState documentation to find out the
allowed values for each property.getValue in interface ChannelStateEventpublic java.lang.String toString()
toString in class java.lang.Object