Examples of ExecutorServiceShutdown


Examples of com.twitter.common.util.concurrent.ExecutorServiceShutdown

        });
      }

      read.await();
    } finally {
      new ExecutorServiceShutdown(executor, Amount.of(1L, Time.SECONDS)).execute();
    }
  }
View Full Code Here

Examples of com.twitter.common.util.concurrent.ExecutorServiceShutdown

    executor = Executors.newCachedThreadPool(
        new ThreadFactoryBuilder().setNameFormat("SlowRead-%d").setDaemon(true).build());
    addTearDown(new TearDown() {
      @Override
      public void tearDown() {
        new ExecutorServiceShutdown(executor, Amount.of(1L, Time.SECONDS)).execute();
      }
    });
    statsProvider = new FakeStatsProvider();
    storage = MemStorage.newEmptyStorage(statsProvider);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.