Interface Handler


public interface Handler
The handler interface for receiving cluster messages.

Classes that are interested in monitoring cluster messages implement this interface must register an instance of themselves (the handler) with the Connector, using the registerHandler method.

When a message is received the handler object's handle method is invoked.

There is no current user, no current locale.

The handler itself is responsible for the intended transactional behaviour, but if a transaction is obtained during handle, it will be comitted immediately after the call to handle(Message) (or rollbacked if an exception occurred).

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when a cluster message has been received.
  • Method Details

    • handle

      void handle(Message m)
      Invoked when a cluster message has been received.
      Parameters:
      m - the received Message