public class ExtensibleExecutorService extends AbstractExecutorService
Modifier and Type | Class and Description |
---|---|
static interface |
ExtensibleExecutorService.RunnableFutureFactory
Factory for creating custom RunnableFuture implementations.
|
Constructor and Description |
---|
ExtensibleExecutorService(ExecutorService executor,
ExtensibleExecutorService.RunnableFutureFactory factory) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
void |
execute(Runnable command) |
boolean |
isShutdown() |
boolean |
isTerminated() |
protected <T> RunnableFuture<T> |
newTaskFor(Callable<T> c) |
protected <T> RunnableFuture<T> |
newTaskFor(Runnable r,
T value) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
public ExtensibleExecutorService(ExecutorService executor, ExtensibleExecutorService.RunnableFutureFactory factory)
protected <T> RunnableFuture<T> newTaskFor(Runnable r, T value)
newTaskFor
in class AbstractExecutorService
protected <T> RunnableFuture<T> newTaskFor(Callable<T> c)
newTaskFor
in class AbstractExecutorService
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public void execute(Runnable command)
Copyright © 2016–2018. All rights reserved.