public class DownstreamChannelStateEvent extends Object implements ChannelStateEvent
ChannelStateEvent
implementation.Constructor and Description |
---|
DownstreamChannelStateEvent(Channel channel,
ChannelFuture future,
ChannelState state,
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 . |
Object |
getValue()
Returns the value of the changed property of the
Channel . |
String |
toString() |
public DownstreamChannelStateEvent(Channel channel, ChannelFuture future, ChannelState state, Object value)
public Channel getChannel()
ChannelEvent
Channel
which is associated with this event.getChannel
in interface ChannelEvent
public ChannelFuture getFuture()
ChannelEvent
ChannelFuture
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 ChannelEvent
public ChannelState getState()
ChannelStateEvent
Channel
.getState
in interface ChannelStateEvent
public Object getValue()
ChannelStateEvent
Channel
.
Please refer to ChannelState
documentation to find out the
allowed values for each property.getValue
in interface ChannelStateEvent
Copyright © 2008-2014 The Netty Project. All Rights Reserved.