Package org.jboss.netty.channel
Class DefaultChildChannelStateEvent
- java.lang.Object
-
- org.jboss.netty.channel.DefaultChildChannelStateEvent
-
- All Implemented Interfaces:
ChannelEvent
,ChildChannelStateEvent
public class DefaultChildChannelStateEvent extends Object implements ChildChannelStateEvent
The defaultChildChannelStateEvent
implementation.
-
-
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 Channel
getChannel()
Returns the parentChannel
which is associated with this event.Channel
getChildChannel()
Returns the childChannel
whose state has been changed.ChannelFuture
getFuture()
Returns theChannelFuture
which is associated with this event.String
toString()
-
-
-
Method Detail
-
getChannel
public Channel getChannel()
Description copied from interface:ChildChannelStateEvent
Returns the parentChannel
which is associated with this event. Please note that you should useChildChannelStateEvent.getChildChannel()
to get theChannel
created or accepted by the parentChannel
.- Specified by:
getChannel
in interfaceChannelEvent
- Specified by:
getChannel
in interfaceChildChannelStateEvent
-
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
-
getChildChannel
public Channel getChildChannel()
Description copied from interface:ChildChannelStateEvent
Returns the childChannel
whose state has been changed.- Specified by:
getChildChannel
in interfaceChildChannelStateEvent
-
-