com.fasterxml.clustermate.service.StartAndStoppable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clustermate-service Show documentation
Show all versions of clustermate-service Show documentation
Building blocks for ClusterMate-based services and servers.
package com.fasterxml.clustermate.service;
/**
* Simple tag interface, to denote Managed things but encapsulate
* details on interaction with the service.
*
* Note: while inspired by Managed
interface of DropWizard,
* does not implement it, to keep interaction decoupled form DW to
* work on other containers as well.
*/
public interface StartAndStoppable
{
public void start() throws java.lang.Exception;
/**
* Method called before {@link #stop}, and is meant to start graceful
* shutdown.
*
* @since 0.9.3
*/
public void prepareForStop() throws Exception;
public void stop() throws java.lang.Exception;
}