Package org.jboss.netty.channel
Class DownstreamChannelStateEvent
java.lang.Object
org.jboss.netty.channel.DownstreamChannelStateEvent
- All Implemented Interfaces:
ChannelEvent
,ChannelStateEvent
The default downstream
ChannelStateEvent
implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Channel
private final ChannelFuture
private final ChannelState
private final Object
-
Constructor Summary
ConstructorsConstructorDescriptionDownstreamChannelStateEvent
(Channel channel, ChannelFuture future, ChannelState state, Object value) Creates a new instance. -
Method Summary
-
Field Details
-
channel
-
future
-
state
-
value
-
-
Constructor Details
-
DownstreamChannelStateEvent
public DownstreamChannelStateEvent(Channel channel, ChannelFuture future, ChannelState state, Object value) Creates a new instance.
-
-
Method Details
-
getChannel
Description copied from interface:ChannelEvent
Returns theChannel
which is associated with this event.- Specified by:
getChannel
in interfaceChannelEvent
-
getFuture
Description copied from interface:ChannelEvent
Returns theChannelFuture
which is associated with this event. If this event is an upstream event, this method will always return aSucceededChannelFuture
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.- Specified by:
getFuture
in interfaceChannelEvent
-
getState
Description copied from interface:ChannelStateEvent
Returns the changed property of theChannel
.- Specified by:
getState
in interfaceChannelStateEvent
-
getValue
Description copied from interface:ChannelStateEvent
Returns the value of the changed property of theChannel
. Please refer toChannelState
documentation to find out the allowed values for each property.- Specified by:
getValue
in interfaceChannelStateEvent
-
toString
-