public class ManagedScheduledExecutorService extends ManagedExecutorService implements ScheduledExecutorService
| Constructor and Description |
|---|
ManagedScheduledExecutorService(ScheduledExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
boolean |
isShutdown() |
boolean |
isTerminated() |
<V> ScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
execute, invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ManagedScheduledExecutorService(ScheduledExecutorService executor)
public void shutdown()
ManagedExecutorServiceshutdown in interface ExecutorServiceshutdown in class ManagedExecutorServiceExecutorService.shutdown()public List<Runnable> shutdownNow()
ManagedExecutorServiceshutdownNow in interface ExecutorServiceshutdownNow in class ManagedExecutorServiceExecutorService.shutdownNow()public boolean isShutdown()
ManagedExecutorServiceisShutdown in interface ExecutorServiceisShutdown in class ManagedExecutorServiceExecutorService.isShutdown()public boolean isTerminated()
ManagedExecutorServiceisTerminated in interface ExecutorServiceisTerminated in class ManagedExecutorServiceExecutorService.isTerminated()public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
ManagedExecutorServiceawaitTermination in interface ExecutorServiceawaitTermination in class ManagedExecutorServiceInterruptedExceptionExecutorService.awaitTermination(long, java.util.concurrent.TimeUnit)public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule in interface ScheduledExecutorServiceScheduledExecutorService.schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule in interface ScheduledExecutorServiceScheduledExecutorService.schedule(java.util.concurrent.Callable, long, java.util.concurrent.TimeUnit)public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate in interface ScheduledExecutorServiceScheduledExecutorService.scheduleAtFixedRate(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
scheduleWithFixedDelay in interface ScheduledExecutorServiceScheduledExecutorService.scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)Copyright © 2015 JBoss by Red Hat. All rights reserved.