private static final class TestingExecutors.NoOpScheduledExecutorService extends AbstractListeningExecutorService implements ListeningScheduledExecutorService
Modifier and Type | Class and Description |
---|---|
private static class |
TestingExecutors.NoOpScheduledExecutorService.NeverScheduledFuture<V> |
Modifier and Type | Field and Description |
---|---|
private boolean |
shutdown |
Modifier | Constructor and Description |
---|---|
private |
NoOpScheduledExecutorService() |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
execute(java.lang.Runnable runnable) |
boolean |
isShutdown() |
boolean |
isTerminated() |
<V> ListenableScheduledFuture<V> |
schedule(java.util.concurrent.Callable<V> callable,
long delay,
java.util.concurrent.TimeUnit unit) |
ListenableScheduledFuture<?> |
schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit) |
ListenableScheduledFuture<?> |
scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit) |
ListenableScheduledFuture<?> |
scheduleWithFixedDelay(java.lang.Runnable command,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit unit) |
void |
shutdown() |
java.util.List<java.lang.Runnable> |
shutdownNow() |
newTaskFor, newTaskFor, submit, submit, submit
invokeAll, invokeAll, invokeAny, invokeAny
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay
public void shutdown()
shutdown
in interface java.util.concurrent.ExecutorService
public java.util.List<java.lang.Runnable> shutdownNow()
shutdownNow
in interface java.util.concurrent.ExecutorService
public boolean isShutdown()
isShutdown
in interface java.util.concurrent.ExecutorService
public boolean isTerminated()
isTerminated
in interface java.util.concurrent.ExecutorService
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit)
awaitTermination
in interface java.util.concurrent.ExecutorService
public void execute(java.lang.Runnable runnable)
execute
in interface java.util.concurrent.Executor
public <V> ListenableScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)
schedule
in interface ListeningScheduledExecutorService
schedule
in interface java.util.concurrent.ScheduledExecutorService
public ListenableScheduledFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)
schedule
in interface ListeningScheduledExecutorService
schedule
in interface java.util.concurrent.ScheduledExecutorService
public ListenableScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
scheduleAtFixedRate
in interface ListeningScheduledExecutorService
scheduleAtFixedRate
in interface java.util.concurrent.ScheduledExecutorService
public ListenableScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)
scheduleWithFixedDelay
in interface ListeningScheduledExecutorService
scheduleWithFixedDelay
in interface java.util.concurrent.ScheduledExecutorService