public class ManagedScheduledExecutorServiceImpl extends ManagedExecutorServiceImpl implements ManagedScheduledExecutorService
Constructor and Description |
---|
ManagedScheduledExecutorServiceImpl(java.util.concurrent.ScheduledExecutorService delegate) |
Modifier and Type | Method and Description |
---|---|
static long |
nowMs() |
<V> java.util.concurrent.ScheduledFuture<V> |
schedule(java.util.concurrent.Callable<V> callable,
long delay,
java.util.concurrent.TimeUnit unit) |
<V> java.util.concurrent.ScheduledFuture<V> |
schedule(java.util.concurrent.Callable<V> vCallable,
Trigger trigger)
Creates and executes a task based on a Trigger.
|
java.util.concurrent.ScheduledFuture<?> |
schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit) |
java.util.concurrent.ScheduledFuture<?> |
schedule(java.lang.Runnable runnable,
Trigger trigger)
Creates and executes a task based on a Trigger.
|
java.util.concurrent.ScheduledFuture<?> |
scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit) |
java.util.concurrent.ScheduledFuture<?> |
scheduleWithFixedDelay(java.lang.Runnable command,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit unit) |
awaitTermination, destroyResource, execute, getActiveCount, getCompletedTaskCount, getCorePoolSize, getDelegate, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueueSize, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManagedScheduledExecutorServiceImpl(java.util.concurrent.ScheduledExecutorService delegate)
public java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable runnable, Trigger trigger)
ManagedScheduledExecutorService
schedule
in interface ManagedScheduledExecutorService
runnable
- the task to execute.trigger
- the trigger that determines when the task should fire.get()
method will return null
upon completion.public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V> vCallable, Trigger trigger)
ManagedScheduledExecutorService
schedule
in interface ManagedScheduledExecutorService
vCallable
- the function to execute.trigger
- the trigger that determines when the task should fire.public java.util.concurrent.ScheduledFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)
schedule
in interface java.util.concurrent.ScheduledExecutorService
public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)
schedule
in interface java.util.concurrent.ScheduledExecutorService
public java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
scheduleAtFixedRate
in interface java.util.concurrent.ScheduledExecutorService
public java.util.concurrent.ScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)
scheduleWithFixedDelay
in interface java.util.concurrent.ScheduledExecutorService
public static long nowMs()