All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dropwizard.lifecycle.Managed Maven / Gradle / Ivy

There is a newer version: 0.40.13
Show newest version
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