com.netflix.governator.guice.runner.TerminationEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of governator Show documentation
Show all versions of governator Show documentation
governator developed by Netflix
The newest version!
package com.netflix.governator.guice.runner;
/**
* Abstraction for an event that when fired should tell the LifecycleRunner
* to terminate. A concrete TerminatEvent type is normally paired with a
* specific runner implementation.
*
* @author elandau
*
* TODO: Add additional listeners of the termination event
*/
public interface TerminationEvent {
/**
* Block until the termination event is fired.
*
* @throws InterruptedException
*/
public void await() throws InterruptedException;
/**
* Fire the termination event.
*/
public void terminate();
/**
* @return True if the termination event was set.
*/
public boolean isTerminated();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy