org.jboss.netty.channel

## Class UpstreamMessageEvent

- java.lang.Object
- - org.jboss.netty.channel.UpstreamMessageEvent

All Implemented Interfaces:
  ChannelEvent, MessageEvent

    public class UpstreamMessageEvent
    extends Object
    implements MessageEvent

The default upstream `MessageEvent` implementation.

### Constructor Summary

Constructors
Constructor and Description
`UpstreamMessageEvent(Channel channel, Object message, SocketAddress remoteAddress)` Creates a new instance.

### Method Summary

Methods
`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()`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Constructor Detail

#### UpstreamMessageEvent

    public UpstreamMessageEvent(Channel channel,
                        Object message,
                        SocketAddress remoteAddress)

Creates a new instance.

### Method Detail

#### getChannel

    public Channel getChannel()

Description copied from interface: `ChannelEvent`
Returns the `Channel` which is associated with this event.

Specified by:
  `getChannel` in interface `ChannelEvent`

#### getFuture

    public ChannelFuture getFuture()

Description copied from interface: `ChannelEvent`
Returns the `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.

Specified by:
  `getFuture` in interface `ChannelEvent`

#### getMessage

    public Object getMessage()

Description copied from interface: `MessageEvent`
Returns the message.

Specified by:
  `getMessage` in interface `MessageEvent`

#### getRemoteAddress

    public SocketAddress getRemoteAddress()

Description copied from interface: `MessageEvent`
Returns the remote address of the message.

Specified by:
  `getRemoteAddress` in interface `MessageEvent`

#### toString

    public String toString()

Overrides:
  `toString` in class `Object`