Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ListeningScheduledExecutorService
A
ScheduledExecutorService that returns ListenableFuture
instances from its ExecutorService methods. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractListeningExecutorService
Abstract
ListeningExecutorService implementation that creates
ListenableFutureTask instances for each Runnable and Callable submitted
to it. |
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 ListeningExecutorService |
ForwardingListeningExecutorService.delegate() |
static ListeningExecutorService |
MoreExecutors.listeningDecorator(ExecutorService delegate)
Creates an
ExecutorService whose submit and invokeAll methods submit ListenableFutureTask instances to the
given delegate executor. |
static ListeningExecutorService |
MoreExecutors.sameThreadExecutor()
Creates an executor service that runs each task in the thread
that invokes
execute/submit , as in ThreadPoolExecutor.CallerRunsPolicy This
applies both to individually submitted tasks and to collections of tasks
submitted via invokeAll or invokeAny . |
Copyright © 2010-2014. All Rights Reserved.