@Test public void testFailure() throws InterruptedException { Thrower r = new Thrower(); t.schedule(r, DELAY); Thread.sleep(DELAY + PAD); assertTrue(r.wasRun); }
public ScheduledFuture<?> schedule(Runnable task, long delay) { return executor.schedule(task, delay, TimeUnit.MILLISECONDS); }
SimpleTimer { public ScheduledFuture<?> schedule(Runnable task, long delay) { return executor.schedule(task, delay, TimeUnit.MILLISECONDS); } }
SimpleTimer { public ScheduledFuture<?> schedule(Runnable task, long delay) { return executor.schedule(task, delay, TimeUnit.MILLISECONDS); } private  SimpleTimer(int threadPoolSize); }
SimpleTimer { public ScheduledFuture<?> schedule(Runnable task, long delay) { return executor.schedule(task, delay, TimeUnit.MILLISECONDS); } private  SimpleTimer(int threadPoolSize); static synchronized SimpleTimer getInstance(int threadPoolSize); static synchronized SimpleTimer getInstance(AccumuloConfiguration conf); ScheduledFuture<?> schedule(Runnable task, long delay); ScheduledFuture<?> schedule(Runnable task, long delay, long period); }
SimpleTimer { public ScheduledFuture<?> schedule(Runnable task, long delay) { return executor.schedule(task, delay, TimeUnit.MILLISECONDS); } private  SimpleTimer(int threadPoolSize); static synchronized SimpleTimer getInstance(int threadPoolSize); static synchronized SimpleTimer getInstance(AccumuloConfiguration conf); ScheduledFuture<?> schedule(Runnable task, long delay); ScheduledFuture<?> schedule(Runnable task, long delay, long period);  }