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 AbstractExecutorServiceprotected <T> RunnableFuture<T> newTaskFor(Callable<T> c)
newTaskFor in class AbstractExecutorServicepublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic void execute(Runnable command)
Copyright © 2016–2018. All rights reserved.