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

com.netflix.governator.guice.runner.TerminationEvent Maven / Gradle / Ivy

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