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 Channelprivate final ChannelFutureprivate final ChannelStateprivate 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:ChannelEventReturns theChannelwhich is associated with this event.- Specified by:
getChannelin interfaceChannelEvent
-
getFuture
Description copied from interface:ChannelEventReturns theChannelFuturewhich is associated with this event. If this event is an upstream event, this method will always return aSucceededChannelFuturebecause 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:
getFuturein interfaceChannelEvent
-
getState
Description copied from interface:ChannelStateEventReturns the changed property of theChannel.- Specified by:
getStatein interfaceChannelStateEvent
-
getValue
Description copied from interface:ChannelStateEventReturns the value of the changed property of theChannel. Please refer toChannelStatedocumentation to find out the allowed values for each property.- Specified by:
getValuein interfaceChannelStateEvent
-
toString
-