Interface StartableClusterAware


public interface StartableClusterAware
A class implementing this interface is executed will be started (execution of the method start()) during the startup of the platform but on one node only if running in cluster. If the node running the cluster aware service is stopped during the execution of the service, it will be started again on another cluster node, unless the isDone() method returns true.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if service is done
    void
    Start service by the current node
    default void
    Stop service by the current node
  • Method Details

    • start

      void start()
      Start service by the current node
    • isDone

      boolean isDone()
      Check if service is done
      Returns:
    • stop

      default void stop()
      Stop service by the current node