Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
java.util.concurrent |
Modifier and Type | Interface and Description |
---|---|
interface |
ListeningExecutorService
An
ExecutorService that returns ListenableFuture instances. |
interface |
ListeningScheduledExecutorService
A
ScheduledExecutorService that returns ListenableFuture
instances from its ExecutorService methods. |
Modifier and Type | Class and Description |
---|---|
class |
ForwardingExecutorService
An executor service which forwards all its method calls to another executor
service.
|
class |
ForwardingListeningExecutorService
A listening executor service which forwards all its method calls to another
listening executor service.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ExecutorService |
ForwardingExecutorService.delegate() |
static ExecutorService |
MoreExecutors.getExitingExecutorService(ThreadPoolExecutor executor)
Converts the given ThreadPoolExecutor into an ExecutorService that exits
when the application is complete.
|
static ExecutorService |
MoreExecutors.getExitingExecutorService(ThreadPoolExecutor executor,
long terminationTimeout,
TimeUnit timeUnit)
Converts the given ThreadPoolExecutor into an ExecutorService that exits
when the application is complete.
|
Modifier and Type | Method and Description |
---|---|
static void |
MoreExecutors.addDelayedShutdownHook(ExecutorService service,
long terminationTimeout,
TimeUnit timeUnit)
Add a shutdown hook to wait for thread completion in the given
service . |
static ListeningExecutorService |
MoreExecutors.listeningDecorator(ExecutorService delegate)
Creates an
ExecutorService whose submit and invokeAll methods submit ListenableFutureTask instances to the
given delegate executor. |
Constructor and Description |
---|
SimpleTimeLimiter(ExecutorService executor)
Constructs a TimeLimiter instance using the given executor service to
execute proxied method calls.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ScheduledExecutorService |
Copyright © 2010-2012. All Rights Reserved.