Uses of Package
com.google.common.util.concurrent
-
Packages that use com.google.common.util.concurrent Package Description com.google.common.cache Discouraged (in favor of Caffeine) caching utilities.com.google.common.util.concurrent Concurrency utilities. -
Classes in com.google.common.util.concurrent used by com.google.common.cache Class Description ListenableFuture AFuture
that accepts completion listeners. -
Classes in com.google.common.util.concurrent used by com.google.common.util.concurrent Class Description AbstractFuture An abstract implementation ofListenableFuture
, intended for advanced users only.AbstractScheduledService.CustomScheduler.Schedule A value object that represents an absolute delay until a task should be invoked.AbstractScheduledService.Scheduler A scheduler defines the policy for how theAbstractScheduledService
should run its task.AsyncCallable Computes a value, possibly asynchronously.AsyncFunction Transforms a value, possibly asynchronously.AtomicLongMap A map containinglong
values that can be atomically updated.ClosingFuture A step in a pipeline of an asynchronous computation.ClosingFuture.AsyncClosingCallable An operation that computes aClosingFuture
of a result.ClosingFuture.AsyncClosingFunction A function from an input to aClosingFuture
of a result.ClosingFuture.ClosingCallable An operation that computes a result.ClosingFuture.ClosingFunction A function from an input to a result.ClosingFuture.Combiner A builder of aClosingFuture
step that is derived from more than one input step.ClosingFuture.Combiner.AsyncCombiningCallable An operation that returns aClosingFuture
result and may throw an exception.ClosingFuture.Combiner.CombiningCallable An operation that returns a result and may throw an exception.ClosingFuture.Combiner2 A genericClosingFuture.Combiner
that lets you use a lambda or method reference to combine twoClosingFuture
s.ClosingFuture.Combiner2.AsyncClosingFunction2 A function that returns aClosingFuture
when applied to the values of the two futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture)
.ClosingFuture.Combiner2.ClosingFunction2 A function that returns a value when applied to the values of the two futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture)
.ClosingFuture.Combiner3 A genericClosingFuture.Combiner
that lets you use a lambda or method reference to combine threeClosingFuture
s.ClosingFuture.Combiner3.AsyncClosingFunction3 A function that returns aClosingFuture
when applied to the values of the three futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture)
.ClosingFuture.Combiner3.ClosingFunction3 A function that returns a value when applied to the values of the three futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture)
.ClosingFuture.Combiner4 A genericClosingFuture.Combiner
that lets you use a lambda or method reference to combine fourClosingFuture
s.ClosingFuture.Combiner4.AsyncClosingFunction4 A function that returns aClosingFuture
when applied to the values of the four futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture)
.ClosingFuture.Combiner4.ClosingFunction4 A function that returns a value when applied to the values of the four futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture)
.ClosingFuture.Combiner5 A genericClosingFuture.Combiner
that lets you use a lambda or method reference to combine fiveClosingFuture
s.ClosingFuture.Combiner5.AsyncClosingFunction5 A function that returns aClosingFuture
when applied to the values of the five futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture)
.ClosingFuture.Combiner5.ClosingFunction5 A function that returns a value when applied to the values of the five futures passed toClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture, ClosingFuture)
.ClosingFuture.DeferredCloser An object that can capture objects to be closed later, when aClosingFuture
pipeline is done.ClosingFuture.Peeker An object that can return the value of theClosingFuture
s that are passed toClosingFuture.whenAllComplete(Iterable)
orClosingFuture.whenAllSucceed(Iterable)
.ClosingFuture.ValueAndCloser 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.ClosingFuture.ValueAndCloserConsumer Represents an operation that accepts aClosingFuture.ValueAndCloser
for the last step in aClosingFuture
pipeline.CycleDetectingLockFactory TheCycleDetectingLockFactory
createsReentrantLock
instances andReentrantReadWriteLock
instances that detect potential deadlock by checking for cycles in lock acquisition order.CycleDetectingLockFactory.Policies Pre-definedCycleDetectingLockFactory.Policy
implementations.CycleDetectingLockFactory.Policy Encapsulates the action to be taken when a potential deadlock is encountered.CycleDetectingLockFactory.PotentialDeadlockException Represents a detected cycle in lock acquisition ordering.CycleDetectingLockFactory.WithExplicitOrdering ACycleDetectingLockFactory.WithExplicitOrdering
provides the additional enforcement of an application-specified ordering of lock acquisitions.ExecutionSequencer Serializes execution of tasks, somewhat like an "asynchronoussynchronized
block."FluentFuture AListenableFuture
that supports fluent chains of operations.ForwardingExecutorService An executor service which forwards all its method calls to another executor service.ForwardingFuture AFuture
which forwards all its method calls to another future.ForwardingListenableFuture AListenableFuture
which forwards all its method calls to another future.FutureCallback A callback for accepting the results of aFuture
computation asynchronously.Futures.FutureCombiner A helper to create a newListenableFuture
whose result is generated from a combination of input futures.ListenableFuture AFuture
that accepts completion listeners.ListenableFutureTask AFutureTask
that also implements theListenableFuture
interface.ListenableScheduledFuture Helper interface to implement bothListenableFuture
andScheduledFuture
.ListeningExecutorService AnExecutorService
that returnsListenableFuture
instances.ListeningScheduledExecutorService AScheduledExecutorService
that returnsListenableFuture
instances from itsExecutorService
methods.Monitor A synchronization abstraction supporting waiting on arbitrary boolean conditions.Monitor.Guard A boolean condition for which a thread may wait.RateLimiter A rate limiter.Service An object with an operational state, plus asynchronousService.startAsync()
andService.stopAsync()
lifecycle methods to transition between states.Service.Listener A listener for the various state changes that aService
goes through in its lifecycle.Service.State The lifecycle states of a service.ServiceManager A manager for monitoring and controlling a set of services.ServiceManager.Listener A listener for the aggregate state changes of the services that are under management.SettableFuture AListenableFuture
whose result can be set by aSettableFuture.set(Object)
,SettableFuture.setException(Throwable)
orSettableFuture.setFuture(ListenableFuture)
call.SimpleTimeLimiter A TimeLimiter that runs method calls in the background using anExecutorService
.Striped A stripedLock/Semaphore/ReadWriteLock
.ThreadFactoryBuilder 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 factoryTimeLimiter Imposes a time limit on method calls.