public class QueuedScheduledExecutorService extends QueuedExecutorService implements java.util.concurrent.ScheduledExecutorService
Constructor and Description |
---|
QueuedScheduledExecutorService(java.util.concurrent.ExecutorService delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminated() |
<V> java.util.concurrent.ScheduledFuture<V> |
schedule(java.util.concurrent.Callable<V> callable,
long delay,
java.util.concurrent.TimeUnit unit) |
java.util.concurrent.ScheduledFuture<?> |
schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit) |
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) |
void |
setContinueExistingPeriodicTasksAfterShutdownPolicy(boolean value) |
void |
setExecuteExistingDelayedTasksAfterShutdownPolicy(boolean value) |
void |
setRemoveOnCancelPolicy(boolean removeOnCancel) |
void |
shutdown() |
awaitTermination, execute, isShutdown, shutdownNow
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public QueuedScheduledExecutorService(java.util.concurrent.ExecutorService delegate)
delegate
- the executor that will handle the taskspublic boolean isTerminated()
isTerminated
in interface java.util.concurrent.ExecutorService
isTerminated
in class QueuedExecutorService
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 void shutdown()
shutdown
in interface java.util.concurrent.ExecutorService
shutdown
in class QueuedExecutorService
public void setContinueExistingPeriodicTasksAfterShutdownPolicy(boolean value)
public void setExecuteExistingDelayedTasksAfterShutdownPolicy(boolean value)
public void setRemoveOnCancelPolicy(boolean removeOnCancel)
Copyright © 2014–2019 XMPP.rocks. All rights reserved.