Interface MessageReceiver

All Superinterfaces:
OsidReceiver

public interface MessageReceiver extends OsidReceiver

The MessageReceiver is used to receive incoming connections. The receiver is provided to the service via the InboundMessageSession and invoked by the transport provider when a new association is created.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked by the transport provider when a new connection request or datagram is received.

    Methods inherited from interface OsidReceiver

    down, up
    Modifier and Type
    Method
    Description
    void
    The callback for notifications that the notification bus is not operating.
    void
    up()
    The callback for notifications that the notification bus is operational.
  • Method Details

    • dispatch

      void dispatch(OutboundMessageSession session)
      Invoked by the transport provider when a new connection request or datagram is received.
      Parameters:
      session - a session to send and receive messages
      Compliance:
      mandatory - This method must be implemented.