Package org.jboss.netty.channel
Class DefaultChildChannelStateEvent
java.lang.Object
org.jboss.netty.channel.DefaultChildChannelStateEvent
- All Implemented Interfaces:
ChannelEvent
,ChildChannelStateEvent
The default
ChildChannelStateEvent
implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultChildChannelStateEvent
(Channel parentChannel, Channel childChannel) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the parentChannel
which is associated with this event.Returns the childChannel
whose state has been changed.Returns theChannelFuture
which is associated with this event.toString()
-
Field Details
-
parentChannel
-
childChannel
-
-
Constructor Details
-
DefaultChildChannelStateEvent
Creates a new instance.
-
-
Method Details
-
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
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
Description copied from interface:ChildChannelStateEvent
Returns the childChannel
whose state has been changed.- Specified by:
getChildChannel
in interfaceChildChannelStateEvent
-
toString
-