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 parentChannelwhich is associated with this event.Returns the childChannelwhose state has been changed.Returns theChannelFuturewhich is associated with this event.toString()
-
Field Details
-
parentChannel
-
childChannel
-
-
Constructor Details
-
DefaultChildChannelStateEvent
-
-
Method Details
-
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
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
Description copied from interface:ChildChannelStateEventReturns the childChannelwhose state has been changed.- Specified by:
getChildChannelin interfaceChildChannelStateEvent
-
toString
-