Package com.google.common.util.concurrent.ServiceManager

Examples of com.google.common.util.concurrent.ServiceManager.Listener


   */
  public void testFailStart_stopOthers() throws TimeoutException {
    Service a = new FailStartService();
    Service b = new NoOpService();
    final ServiceManager manager = new ServiceManager(asList(a, b));
    manager.addListener(new Listener() {
      @Override public void failure(Service service) {
        manager.stopAsync();
      }});
    manager.startAsync();
    manager.awaitStopped(10, TimeUnit.MILLISECONDS);
View Full Code Here

TOP

Related Classes of com.google.common.util.concurrent.ServiceManager.Listener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.