List of usage examples for com.google.common.util.concurrent Service.Listener interface-usage
From source file c5db.SimpleC5ModuleListener.java
/** * A {@link com.google.common.util.concurrent.Service.Listener} that logs the module lifecycle * and performs a single action when the module stops or fails. */ public class SimpleC5ModuleListener implements Service.Listener { private final Logger logger = LoggerFactory.getLogger(this.getClass());
From source file org.apache.twill.common.ServiceListenerAdapter.java
/** * An adapter for implementing {@link Service.Listener} with all method default to no-op. */ public abstract class ServiceListenerAdapter implements Service.Listener { @Override public void starting() {
From source file org.apache.twill.internal.ServiceListenerAdapter.java
/** * An adapter for implementing {@link Service.Listener} with all method default to no-op. */ public abstract class ServiceListenerAdapter implements Service.Listener { @Override public void starting() {
From source file com.continuuity.weave.internal.ListenerExecutor.java
/** * Wrapper for {@link Service.Listener} to have callback executed on a given {@link Executor}. * Also make sure each method is called at most once. */ final class ListenerExecutor implements Service.Listener {
From source file org.apache.twill.internal.ListenerExecutor.java
/** * Wrapper for {@link Service.Listener} to have callback executed on a given {@link Executor}. * Also make sure each method is called at most once. */ final class ListenerExecutor implements Service.Listener {