Class UpstreamMessageEvent
java.lang.Object
org.jboss.netty.channel.UpstreamMessageEvent
- All Implemented Interfaces:
ChannelEvent, MessageEvent
The default upstream
MessageEvent implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Channelprivate final Objectprivate final SocketAddress -
Constructor Summary
ConstructorsConstructorDescriptionUpstreamMessageEvent(Channel channel, Object message, SocketAddress remoteAddress) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns theChannelwhich is associated with this event.Returns theChannelFuturewhich is associated with this event.Returns the message.Returns the remote address of the message.toString()
-
Field Details
-
channel
-
message
-
remoteAddress
-
-
Constructor Details
-
UpstreamMessageEvent
Creates a new instance.
-
-
Method Details
-
getChannel
Description copied from interface:ChannelEventReturns theChannelwhich is associated with this event.- Specified by:
getChannelin interfaceChannelEvent
-
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
-
getMessage
Description copied from interface:MessageEventReturns the message.- Specified by:
getMessagein interfaceMessageEvent
-
getRemoteAddress
Description copied from interface:MessageEventReturns the remote address of the message.- Specified by:
getRemoteAddressin interfaceMessageEvent
-
toString
-