public class DefaultChildChannelStateEvent extends Object implements ChildChannelStateEvent
ChildChannelStateEvent
implementation.Constructor and Description |
---|
DefaultChildChannelStateEvent(Channel parentChannel,
Channel childChannel)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel()
Returns the parent
Channel which is associated
with this event. |
Channel |
getChildChannel()
Returns the child
Channel whose state has been changed. |
ChannelFuture |
getFuture()
Returns the
ChannelFuture which is associated with this event. |
String |
toString() |
public Channel getChannel()
ChildChannelStateEvent
Channel
which is associated
with this event. Please note that you should use ChildChannelStateEvent.getChildChannel()
to get the Channel
created or accepted by the parent Channel
.getChannel
in interface ChannelEvent
getChannel
in interface ChildChannelStateEvent
public ChannelFuture getFuture()
ChannelEvent
ChannelFuture
which is associated with this event.
If this event is an upstream event, this method will always return a
SucceededChannelFuture
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.getFuture
in interface ChannelEvent
public Channel getChildChannel()
ChildChannelStateEvent
Channel
whose state has been changed.getChildChannel
in interface ChildChannelStateEvent
Copyright © 2008-2014 The Netty Project. All Rights Reserved.