org.apache.mina.service.executor

## Class ReceiveEvent

- java.lang.Object
- - org.apache.mina.service.executor.ReceiveEvent

- All Implemented Interfaces:
    Event

      public class ReceiveEvent
      extends Object
      implements Event

  A `IoSession` received a message `Event`.
  Author:
    Apache MINA Project

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReceiveEvent(IoSession session, Object message)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getMessage()`
    `IoSession` | `getSession()` The session of this event.
    `void` | `visit(EventVisitor visitor)` Call the visitor method for this kind of event.

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

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

- - ### Constructor Detail

    - #### ReceiveEvent

          public ReceiveEvent(IoSession session,
                      Object message)

  - ### Method Detail

    - #### getSession

          public IoSession getSession()

      The session of this event.
      Specified by:
        `getSession` in interface `Event`
      Returns:
        the session (cannot be null)

    - #### getMessage

          public Object getMessage()

    - #### visit

          public void visit(EventVisitor visitor)

      Description copied from interface: `Event`
      Call the visitor method for this kind of event.
      Specified by:
        `visit` in interface `Event`
      Parameters:
        `visitor` - the vistor to call

Copyright © 2009–2013 Apache MINA Project. All rights reserved.