Package io.dropwizard.lifecycle
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
-
Method Details
-
start
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
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.
-