All Known Subinterfaces:
DurableQueueConsumer, DurableQueues, FencedLockManager
All Known Implementing Classes:
DBFencedLockManager, DefaultDurableQueueConsumer, DurableLocalCommandBus

public interface Lifecycle
Common process life cycle interface
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the process is started
    void
    Start the processing.
    void
    Stop the processing.
  • Method Details

    • start

      void start()
      Start the processing. This operation must be idempotent, such that duplicate calls to start() for an already started process (where isStarted() returns true) is ignored
    • stop

      void stop()
      Stop the processing. This operation must be idempotent, such that duplicate calls to stop() for an already stopped process (where isStarted() returns false) is ignored
    • isStarted

      boolean isStarted()
      Returns true if the process is started
      Returns:
      true if the process is started otherwise false