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, submit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManagedScheduledExecutorService(ScheduledExecutorService executor)
public void shutdown()
ManagedExecutorService
shutdown
in interface ExecutorService
shutdown
in class ManagedExecutorService
ExecutorService.shutdown()
public List<Runnable> shutdownNow()
ManagedExecutorService
shutdownNow
in interface ExecutorService
shutdownNow
in class ManagedExecutorService
ExecutorService.shutdownNow()
public boolean isShutdown()
ManagedExecutorService
isShutdown
in interface ExecutorService
isShutdown
in class ManagedExecutorService
ExecutorService.isShutdown()
public boolean isTerminated()
ManagedExecutorService
isTerminated
in interface ExecutorService
isTerminated
in class ManagedExecutorService
ExecutorService.isTerminated()
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
ManagedExecutorService
awaitTermination
in interface ExecutorService
awaitTermination
in class ManagedExecutorService
InterruptedException
ExecutorService.awaitTermination(long, java.util.concurrent.TimeUnit)
public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule
in interface ScheduledExecutorService
ScheduledExecutorService.schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule
in interface ScheduledExecutorService
ScheduledExecutorService.schedule(java.util.concurrent.Callable, long, java.util.concurrent.TimeUnit)
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate
in interface ScheduledExecutorService
ScheduledExecutorService.scheduleAtFixedRate(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
scheduleWithFixedDelay
in interface ScheduledExecutorService
ScheduledExecutorService.scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)
Copyright © 2015 JBoss by Red Hat. All rights reserved.