io.dropwizard.lifecycle.Managed Maven / Gradle / Ivy
package io.dropwizard.lifecycle;
/**
* An interface for objects which need to be started and stopped as the application is started or
* stopped.
*/
public interface Managed {
/**
* Starts the object. Called before the application becomes available.
*
* @throws Exception if something goes wrong; this will halt the application startup.
*/
void start() throws Exception;
/**
* Stops the object. Called after the application is no longer accepting requests.
*
* @throws Exception if something goes wrong.
*/
void stop() throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy