Interface LifecycleComponent

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
AbstractLifecycleComponent, AutoCloseableLifecycleComponent, AutoRecoveryService, BookieService, DataIntegrityService, HttpService, LifecycleComponentStack, RxSchedulerLifecycleComponent, ScrubberService, ServerLifecycleComponent, StatsProviderService

public interface LifecycleComponent extends AutoCloseable
A component based on lifecycle management.
  • Method Details

    • getName

      String getName()
    • lifecycleState

      Lifecycle.State lifecycleState()
    • addLifecycleListener

      void addLifecycleListener(LifecycleListener listener)
    • removeLifecycleListener

      void removeLifecycleListener(LifecycleListener listener)
    • publishInfo

      default void publishInfo(ComponentInfoPublisher componentInfoPublisher)
    • start

      void start()
    • stop

      void stop()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • setExceptionHandler

      void setExceptionHandler(Thread.UncaughtExceptionHandler handler)
      Set the default handler invoked when a lifecycle component abruptly terminates due an uncaught exception.
      Parameters:
      handler - handler invoked when an uncaught exception happens in the lifecycle component.