Package org.jboss.netty.channel
Class DownstreamChannelStateEvent
- java.lang.Object
-
- org.jboss.netty.channel.DownstreamChannelStateEvent
-
- All Implemented Interfaces:
ChannelEvent,ChannelStateEvent
public class DownstreamChannelStateEvent extends java.lang.Object implements ChannelStateEvent
The default downstreamChannelStateEventimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private Channelchannelprivate ChannelFuturefutureprivate ChannelStatestateprivate java.lang.Objectvalue
-
Constructor Summary
Constructors Constructor Description DownstreamChannelStateEvent(Channel channel, ChannelFuture future, ChannelState state, java.lang.Object value)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelgetChannel()Returns theChannelwhich is associated with this event.ChannelFuturegetFuture()Returns theChannelFuturewhich is associated with this event.ChannelStategetState()Returns the changed property of theChannel.java.lang.ObjectgetValue()Returns the value of the changed property of theChannel.java.lang.StringtoString()
-
-
-
Field Detail
-
channel
private final Channel channel
-
future
private final ChannelFuture future
-
state
private final ChannelState state
-
value
private final java.lang.Object value
-
-
Constructor Detail
-
DownstreamChannelStateEvent
public DownstreamChannelStateEvent(Channel channel, ChannelFuture future, ChannelState state, java.lang.Object value)
Creates a new instance.
-
-
Method Detail
-
getChannel
public Channel getChannel()
Description copied from interface:ChannelEventReturns theChannelwhich is associated with this event.- Specified by:
getChannelin interfaceChannelEvent
-
getFuture
public ChannelFuture 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
public ChannelState getState()
Description copied from interface:ChannelStateEventReturns the changed property of theChannel.- Specified by:
getStatein interfaceChannelStateEvent
-
getValue
public java.lang.Object 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-