Interface RepositorySystemLifecycle

All Known Implementing Classes:
DefaultRepositorySystemLifecycle

public interface RepositorySystemLifecycle
Lifecycle managing component for repository system.
Since:
1.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Registers an "on repository system end" handler.
    void
    Marks the repository system as ended (shut down): all "on close" handlers will be invoked.
  • Method Details

    • systemEnded

      void systemEnded()
      Marks the repository system as ended (shut down): all "on close" handlers will be invoked. This method may be invoked multiple times, only once will execute, subsequent calls will be no-op.
    • addOnSystemEndedHandler

      void addOnSystemEndedHandler(Runnable handler)
      Registers an "on repository system end" handler.

      Throws if repository system is already shut down.