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

com.yammer.dropwizard.lifecycle.Managed Maven / Gradle / Ivy

There is a newer version: 0.6.2
Show newest version
package com.yammer.dropwizard.lifecycle;

/**
 * An interface for objects which need to be started and stopped as the service is started or
 * stopped.
 */
public interface Managed {
    /**
     * Starts the object. Called before the service becomes available.
     *
     * @throws Exception if something goes wrong; this will halt the service startup.
     */
    public void start() throws Exception;

    /**
     * Stops the object. Called after the service is no longer accepting requests.
     *
     * @throws Exception if something goes wrong.
     */
    public void stop() throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy