Interface ClusterEventListener


  • public interface ClusterEventListener
    A service that implements Cluster event listener receives cluster events sent by the Cluster utility service. When such an event is received, the onEvent is invoked with the event that triggered it. The listener may return a value, which is stored in the database.

    Note that the Cluster utility service will register that this cluster node has received the event and will not trigger the listener again (even in case this method throws a runtime exception). The cluster utility service also stores the value returned by the onEvent method.

    Author:
    ivol
    • Method Detail

      • onEvent

        ClusterEventReturnValue onEvent​(ClusterEvent event)
        This method is invoked when a message is sent to this service.
        Parameters:
        event - The event sent
        Returns:
        return value that represents the return value of the method invocation