@Test public void singleThread() { ScheduledExecutorService a = SharedScheduledExecutors.getSingleThreadExecutor(); assertNotNull("ScheduledExecutorService must not be null", a); ScheduledExecutorService b = SharedScheduledExecutors.getSingleThreadExecutor(); assertSame("factories should be same", a, b); }
public static SharedScheduledExecutorService getSingleThreadExecutor() { return singleThreadExecutor; }
SharedScheduledExecutors { public static SharedScheduledExecutorService getSingleThreadExecutor() { return singleThreadExecutor; } }
SharedScheduledExecutors { public static SharedScheduledExecutorService getSingleThreadExecutor() { return singleThreadExecutor; } private  SharedScheduledExecutors(); }
SharedScheduledExecutors { public static SharedScheduledExecutorService getSingleThreadExecutor() { return singleThreadExecutor; } private  SharedScheduledExecutors(); static SharedScheduledExecutorService getSingleThreadExecutor(); static SharedScheduledExecutorService getPoolThreadExecutor(); static void setPoolSize(int poolSize); static void shutdown(); }
SharedScheduledExecutors { public static SharedScheduledExecutorService getSingleThreadExecutor() { return singleThreadExecutor; } private  SharedScheduledExecutors(); static SharedScheduledExecutorService getSingleThreadExecutor(); static SharedScheduledExecutorService getPoolThreadExecutor(); static void setPoolSize(int poolSize); static void shutdown(); static final int DEFAULT_POOL_SIZE; }