public class SingleThreadFutureScheduler extends java.lang.Object implements FutureScheduler
| Constructor and Description |
|---|
SingleThreadFutureScheduler(java.lang.String source,
boolean doKeepAlive) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.ScheduledFuture<?> |
scheduleFuture(java.lang.Runnable command,
long millisecondDelay) |
java.util.concurrent.ScheduledFuture<?> |
scheduleFutureWithFixedDelay(java.lang.Runnable command,
long initialMillisecondDelay,
long millisecondDelay) |
<V> java.util.concurrent.ScheduledFuture<V> |
scheduleFutureWithReturn(java.util.concurrent.Callable<V> callable,
long millisecondDelay) |
void |
teardown() |
public SingleThreadFutureScheduler(java.lang.String source,
boolean doKeepAlive)
public java.util.concurrent.ScheduledFuture<?> scheduleFuture(java.lang.Runnable command,
long millisecondDelay)
scheduleFuture in interface FutureSchedulerpublic <V> java.util.concurrent.ScheduledFuture<V> scheduleFutureWithReturn(java.util.concurrent.Callable<V> callable,
long millisecondDelay)
scheduleFutureWithReturn in interface FutureSchedulerpublic java.util.concurrent.ScheduledFuture<?> scheduleFutureWithFixedDelay(java.lang.Runnable command,
long initialMillisecondDelay,
long millisecondDelay)
scheduleFutureWithFixedDelay in interface FutureSchedulerpublic void teardown()
teardown in interface FutureScheduler