Package org.jboss.netty.channel
Class DefaultChildChannelStateEvent
- java.lang.Object
-
- org.jboss.netty.channel.DefaultChildChannelStateEvent
-
- All Implemented Interfaces:
ChannelEvent,ChildChannelStateEvent
public class DefaultChildChannelStateEvent extends java.lang.Object implements ChildChannelStateEvent
The defaultChildChannelStateEventimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelchildChannelprivate ChannelparentChannel
-
Constructor Summary
Constructors Constructor Description DefaultChildChannelStateEvent(Channel parentChannel, Channel childChannel)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelgetChannel()Returns the parentChannelwhich is associated with this event.ChannelgetChildChannel()Returns the childChannelwhose state has been changed.ChannelFuturegetFuture()Returns theChannelFuturewhich is associated with this event.java.lang.StringtoString()
-
-
-
Method Detail
-
getChannel
public Channel getChannel()
Description copied from interface:ChildChannelStateEventReturns the parentChannelwhich is associated with this event. Please note that you should useChildChannelStateEvent.getChildChannel()to get theChannelcreated or accepted by the parentChannel.- Specified by:
getChannelin interfaceChannelEvent- Specified by:
getChannelin interfaceChildChannelStateEvent
-
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
-
getChildChannel
public Channel getChildChannel()
Description copied from interface:ChildChannelStateEventReturns the childChannelwhose state has been changed.- Specified by:
getChildChannelin interfaceChildChannelStateEvent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-