Package org.jboss.netty.channel
Class UpstreamChannelStateEvent
- java.lang.Object
-
- org.jboss.netty.channel.UpstreamChannelStateEvent
-
- All Implemented Interfaces:
ChannelEvent,ChannelStateEvent
public class UpstreamChannelStateEvent extends java.lang.Object implements ChannelStateEvent
The default upstreamChannelStateEventimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private Channelchannelprivate ChannelStatestateprivate java.lang.Objectvalue
-
Constructor Summary
Constructors Constructor Description UpstreamChannelStateEvent(Channel channel, 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
-
state
private final ChannelState state
-
value
private final java.lang.Object value
-
-
Constructor Detail
-
UpstreamChannelStateEvent
public UpstreamChannelStateEvent(Channel channel, 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
-
-