Interface SubsystemLifecycle


public interface SubsystemLifecycle
Lifecycle interface for modules and subsystems.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Provide a marker as to the level to order initialization, 10,20,30,...
    void
    start - a module should be ready to operate when this returns.
    void
    stop - a module should have performed any shutdown operations by the time this returns.
  • Method Details

    • start

      void start()
      start - a module should be ready to operate when this returns.
    • stop

      void stop()
      stop - a module should have performed any shutdown operations by the time this returns. Caution: code must be prepared to operate without assuming this called. Abrupt termination of the JVM is always possible.
    • level

      default int level()
      Provide a marker as to the level to order initialization, 10,20,30,... See Subsystem for details.