public class DefaultChildChannelStateEvent extends java.lang.Object implements ChildChannelStateEvent
ChildChannelStateEvent
implementation.构造器和说明 |
---|
DefaultChildChannelStateEvent(Channel parentChannel,
Channel childChannel)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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. |
java.lang.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
在接口中 ChannelEvent
getChannel
在接口中 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
在接口中 ChannelEvent
public Channel getChildChannel()
ChildChannelStateEvent
Channel
whose state has been changed.getChildChannel
在接口中 ChildChannelStateEvent
public java.lang.String toString()
toString
在类中 java.lang.Object