Package org.jboss.netty.channel
Class UpstreamChannelStateEvent
- java.lang.Object
-
- org.jboss.netty.channel.UpstreamChannelStateEvent
-
- All Implemented Interfaces:
ChannelEvent
,ChannelStateEvent
public class UpstreamChannelStateEvent extends Object implements ChannelStateEvent
The default upstreamChannelStateEvent
implementation.
-
-
Constructor Summary
Constructors Constructor Description UpstreamChannelStateEvent(Channel channel, ChannelState state, Object value)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Channel
getChannel()
Returns theChannel
which is associated with this event.ChannelFuture
getFuture()
Returns theChannelFuture
which is associated with this event.ChannelState
getState()
Returns the changed property of theChannel
.Object
getValue()
Returns the value of the changed property of theChannel
.String
toString()
-
-
-
Constructor Detail
-
UpstreamChannelStateEvent
public UpstreamChannelStateEvent(Channel channel, ChannelState state, Object value)
Creates a new instance.
-
-
Method Detail
-
getChannel
public Channel getChannel()
Description copied from interface:ChannelEvent
Returns theChannel
which is associated with this event.- Specified by:
getChannel
in interfaceChannelEvent
-
getFuture
public ChannelFuture 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
public ChannelState getState()
Description copied from interface:ChannelStateEvent
Returns the changed property of theChannel
.- Specified by:
getState
in interfaceChannelStateEvent
-
getValue
public Object 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
-
-