Interface EventHandler


  • public interface EventHandler
    Interface which defines 2 callbacks: up() and down(). An EventHandler can be installed in SUPERVISOR by a rule which requires callbacks when an event is passed up or down the stack.
    Since:
    3.3
    Author:
    Bela Ban
    • Method Detail

      • up

        java.lang.Object up​(Event evt)
                     throws java.lang.Throwable
        Called when an up event is received
        Parameters:
        evt - The event
        Returns:
        Ignored
        Throws:
        java.lang.Throwable
      • up

        java.lang.Object up​(Message msg)
                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • down

        java.lang.Object down​(Event evt)
                       throws java.lang.Throwable
        Called when a down event is received
        Parameters:
        evt - The event
        Returns:
        Ignored
        Throws:
        java.lang.Throwable
      • down

        java.lang.Object down​(Message msg)
                       throws java.lang.Throwable
        Throws:
        java.lang.Throwable