
public class UpstreamMessageEvent extends Object implements MessageEvent
MessageEvent implementation.| Constructor and Description |
|---|
UpstreamMessageEvent(Channel channel,
Object message,
SocketAddress remoteAddress)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel()
Returns the
Channel which is associated with this event. |
ChannelFuture |
getFuture()
Returns the
ChannelFuture which is associated with this event. |
Object |
getMessage()
Returns the message.
|
SocketAddress |
getRemoteAddress()
Returns the remote address of the message.
|
String |
toString() |
public UpstreamMessageEvent(Channel channel, Object message, SocketAddress remoteAddress)
public Channel getChannel()
ChannelEventChannel which is associated with this event.getChannel in interface ChannelEventpublic ChannelFuture getFuture()
ChannelEventChannelFuture 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 ChannelEventpublic Object getMessage()
MessageEventgetMessage in interface MessageEventpublic SocketAddress getRemoteAddress()
MessageEventgetRemoteAddress in interface MessageEventCopyright © 2008-2014 The Netty Project. All Rights Reserved.