public class ExtensibleExecutorService extends java.util.concurrent.AbstractExecutorService
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExtensibleExecutorService.RunnableFutureFactory
Factory for creating custom RunnableFuture implementations.
|
| Constructor and Description |
|---|
ExtensibleExecutorService(java.util.concurrent.ExecutorService executor,
ExtensibleExecutorService.RunnableFutureFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
execute(Runnable command) |
boolean |
isShutdown() |
boolean |
isTerminated() |
protected <T> java.util.concurrent.RunnableFuture<T> |
newTaskFor(java.util.concurrent.Callable<T> c) |
protected <T> java.util.concurrent.RunnableFuture<T> |
newTaskFor(Runnable r,
T value) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submitpublic ExtensibleExecutorService(java.util.concurrent.ExecutorService executor, ExtensibleExecutorService.RunnableFutureFactory factory)
protected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(Runnable r, T value)
newTaskFor in class java.util.concurrent.AbstractExecutorServiceprotected <T> java.util.concurrent.RunnableFuture<T> newTaskFor(java.util.concurrent.Callable<T> c)
newTaskFor in class java.util.concurrent.AbstractExecutorServicepublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public boolean awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic void execute(Runnable command)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.