Uses of Package
com.google.common.util.concurrent
-
-
ClassDescriptionAn abstract implementation of
ListenableFuture
, intended for advanced users only.A value object that represents an absolute delay until a task should be invoked.A scheduler defines the policy for how theAbstractScheduledService
should run its task.Computes a value, possibly asynchronously.Transforms a value, possibly asynchronously.A map containinglong
values that can be atomically updated.A step in a pipeline of an asynchronous computation.An operation that computes aClosingFuture
of a result.A function from an input to aClosingFuture
of a result.An operation that computes a result.A function from an input to a result.A builder of aClosingFuture
step that is derived from more than one input step.An operation that returns aClosingFuture
result and may throw an exception.An operation that returns a result and may throw an exception.A genericClosingFuture.Combiner
that lets you use a lambda or method reference to combine twoClosingFuture
s.A function that returns aClosingFuture
when applied to the values of the two futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture)
.A function that returns a value when applied to the values of the two futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture)
.A genericClosingFuture.Combiner
that lets you use a lambda or method reference to combine threeClosingFuture
s.A function that returns aClosingFuture
when applied to the values of the three futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture)
.A function that returns a value when applied to the values of the three futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture)
.A genericClosingFuture.Combiner
that lets you use a lambda or method reference to combine fourClosingFuture
s.A function that returns aClosingFuture
when applied to the values of the four futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture)
.A function that returns a value when applied to the values of the four futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture)
.A genericClosingFuture.Combiner
that lets you use a lambda or method reference to combine fiveClosingFuture
s.A function that returns aClosingFuture
when applied to the values of the five futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture)
.A function that returns a value when applied to the values of the five futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture)
.An object that can capture objects to be closed later, when aClosingFuture
pipeline is done.An object that can return the value of theClosingFuture
s that are passed toClosingFuture.whenAllComplete(Iterable)
orClosingFuture.whenAllSucceed(Iterable)
.An object that holds the final result of an asynchronousClosingFuture
operation and allows the user to close all the closeable objects that were captured during it for later closing.Represents an operation that accepts aClosingFuture.ValueAndCloser
for the last step in aClosingFuture
pipeline.TheCycleDetectingLockFactory
createsReentrantLock
instances andReentrantReadWriteLock
instances that detect potential deadlock by checking for cycles in lock acquisition order.Pre-definedCycleDetectingLockFactory.Policy
implementations.Encapsulates the action to be taken when a potential deadlock is encountered.Represents a detected cycle in lock acquisition ordering.ACycleDetectingLockFactory.WithExplicitOrdering
provides the additional enforcement of an application-specified ordering of lock acquisitions.Serializes execution of tasks, somewhat like an "asynchronoussynchronized
block."AListenableFuture
that supports fluent chains of operations.An executor service which forwards all its method calls to another executor service.AFuture
which forwards all its method calls to another future.AListenableFuture
which forwards all its method calls to another future.A callback for accepting the results of aFuture
computation asynchronously.A helper to create a newListenableFuture
whose result is generated from a combination of input futures.AFuture
that accepts completion listeners.AFutureTask
that also implements theListenableFuture
interface.Helper interface to implement bothListenableFuture
andScheduledFuture
.AnExecutorService
that returnsListenableFuture
instances.AScheduledExecutorService
that returnsListenableFuture
instances from itsExecutorService
methods.A synchronization abstraction supporting waiting on arbitrary boolean conditions.A boolean condition for which a thread may wait.A rate limiter.An object with an operational state, plus asynchronousService.startAsync()
andService.stopAsync()
lifecycle methods to transition between states.A listener for the various state changes that aService
goes through in its lifecycle.The lifecycle states of a service.A manager for monitoring and controlling a set of services.A listener for the aggregate state changes of the services that are under management.AListenableFuture
whose result can be set by aSettableFuture.set(Object)
,SettableFuture.setException(Throwable)
orSettableFuture.setFuture(ListenableFuture)
call.A TimeLimiter that runs method calls in the background using anExecutorService
.A stripedLock/Semaphore/ReadWriteLock
.A ThreadFactory builder, providing any combination of these features: whether threads should be marked as daemon threads a naming format a thread priority an uncaught exception handler a backing thread factoryImposes a time limit on method calls.