@Test public void poolThread() { ExecutorService a = SharedExecutors.getPoolThreadExecutor(); assertNotNull("ExecutorService must not be null", a); ExecutorService b = SharedExecutors.getPoolThreadExecutor(); assertSame("factories should be same", a, b); }
public static ExecutorService getPoolThreadExecutor() { return poolThreadExecutor; }
SharedExecutors { public static ExecutorService getPoolThreadExecutor() { return poolThreadExecutor; } }
SharedExecutors { public static ExecutorService getPoolThreadExecutor() { return poolThreadExecutor; } private  SharedExecutors(); }
SharedExecutors { public static ExecutorService getPoolThreadExecutor() { return poolThreadExecutor; } private  SharedExecutors(); static ExecutorService getSingleThreadExecutor(); static ExecutorService getPoolThreadExecutor(); static Timer getTimer(); static void setPoolSize(int poolSize); static void setCalculatePoolPerformance(boolean calculatePoolPerformance, MetricsService metricsService); static void shutdown(); }
SharedExecutors { public static ExecutorService getPoolThreadExecutor() { return poolThreadExecutor; } private  SharedExecutors(); static ExecutorService getSingleThreadExecutor(); static ExecutorService getPoolThreadExecutor(); static Timer getTimer(); static void setPoolSize(int poolSize); static void setCalculatePoolPerformance(boolean calculatePoolPerformance, MetricsService metricsService); static void shutdown(); static final int DEFAULT_POOL_SIZE; }