public class UpstreamMessageEvent extends java.lang.Object implements MessageEvent
MessageEvent
implementation.构造器和说明 |
---|
UpstreamMessageEvent(Channel channel,
java.lang.Object message,
java.net.SocketAddress remoteAddress)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
Channel |
getChannel()
Returns the
Channel which is associated with this event. |
ChannelFuture |
getFuture()
Returns the
ChannelFuture which is associated with this event. |
java.lang.Object |
getMessage()
Returns the message.
|
java.net.SocketAddress |
getRemoteAddress()
Returns the remote address of the message.
|
java.lang.String |
toString() |
public UpstreamMessageEvent(Channel channel, java.lang.Object message, java.net.SocketAddress remoteAddress)
public Channel getChannel()
ChannelEvent
Channel
which is associated with this event.getChannel
在接口中 ChannelEvent
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 java.lang.Object getMessage()
MessageEvent
getMessage
在接口中 MessageEvent
public java.net.SocketAddress getRemoteAddress()
MessageEvent
getRemoteAddress
在接口中 MessageEvent
public java.lang.String toString()
toString
在类中 java.lang.Object