Interface Managed

All Known Implementing Classes:
AutoCloseableManager, ExecutorServiceManager, JettyManaged

public interface Managed
An interface for objects which need to take some action as the application is started or stopped.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Starts the object.
    default void
    Stops the object.
  • Method Details

    • start

      default void start() throws Exception
      Starts the object. Called before the application becomes available. The default implementation is a no-op.
      Throws:
      Exception - if something goes wrong; this will halt the application startup.
    • stop

      default void stop() throws Exception
      Stops the object. Called after the application is no longer accepting requests. The default implementation is a no-op
      Throws:
      Exception - if something goes wrong.