public class NoOpExecutorService extends Object implements ScheduledExecutorService
Constructor and Description |
---|
NoOpExecutorService() |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long l,
TimeUnit timeUnit) |
void |
execute(Runnable runnable) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> callables) |
<T> List<Future<T>> |
invokeAll(Collection<? extends Callable<T>> callables,
long l,
TimeUnit timeUnit) |
<T> T |
invokeAny(Collection<? extends Callable<T>> callables) |
<T> T |
invokeAny(Collection<? extends Callable<T>> callables,
long l,
TimeUnit timeUnit) |
boolean |
isShutdown() |
boolean |
isTerminated() |
<V> ScheduledFuture<V> |
schedule(Callable<V> vCallable,
long l,
TimeUnit timeUnit) |
ScheduledFuture<?> |
schedule(Runnable runnable,
long l,
TimeUnit timeUnit) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable runnable,
long l,
long l1,
TimeUnit timeUnit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable runnable,
long l,
long l1,
TimeUnit timeUnit) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
<T> Future<T> |
submit(Callable<T> tCallable) |
Future<?> |
submit(Runnable runnable) |
<T> Future<T> |
submit(Runnable runnable,
T t) |
public ScheduledFuture<?> schedule(Runnable runnable, long l, TimeUnit timeUnit)
schedule
in interface ScheduledExecutorService
public <V> ScheduledFuture<V> schedule(Callable<V> vCallable, long l, TimeUnit timeUnit)
schedule
in interface ScheduledExecutorService
public ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long l, long l1, TimeUnit timeUnit)
scheduleAtFixedRate
in interface ScheduledExecutorService
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable runnable, long l, long l1, TimeUnit timeUnit)
scheduleWithFixedDelay
in interface ScheduledExecutorService
public void shutdown()
shutdown
in interface ExecutorService
public List<Runnable> shutdownNow()
shutdownNow
in interface ExecutorService
public boolean isShutdown()
isShutdown
in interface ExecutorService
public boolean isTerminated()
isTerminated
in interface ExecutorService
public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException
awaitTermination
in interface ExecutorService
InterruptedException
public <T> Future<T> submit(Callable<T> tCallable)
submit
in interface ExecutorService
public <T> Future<T> submit(Runnable runnable, T t)
submit
in interface ExecutorService
public Future<?> submit(Runnable runnable)
submit
in interface ExecutorService
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables) throws InterruptedException
invokeAll
in interface ExecutorService
InterruptedException
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException
invokeAll
in interface ExecutorService
InterruptedException
public <T> T invokeAny(Collection<? extends Callable<T>> callables) throws InterruptedException, ExecutionException
invokeAny
in interface ExecutorService
InterruptedException
ExecutionException
public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException
invokeAny
in interface ExecutorService
InterruptedException
ExecutionException
TimeoutException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.