Commonly used types include
Commonly used utilities include
Commonly used types include
Commonly used utilities include
This package is a part of the open-source Guava library.
Class Summary Class Description AbstractExecutionThreadServiceBase class for services that can implement
AbstractFuture<V extends @Nullable Object>An abstract implementation of
ListenableFuture, intended for advanced users only.
AbstractIdleServiceBase class for services that do not need a thread while "running" but may need one during startup and shutdown. AbstractListeningExecutorServiceAbstract
ListeningExecutorServiceimplementation that creates
ListenableFutureinstances for each
Callablesubmitted to it.
AbstractScheduledServiceBase class for services that can implement
AbstractScheduledService.shutDown()but while in the "running" state need to perform a periodic task.
AbstractScheduledService.Schedulerthat provides a convenient way for the
AbstractScheduledServiceto use a dynamically changing schedule.
AbstractScheduledService.CustomScheduler.ScheduleA value object that represents an absolute delay until a task should be invoked. AbstractScheduledService.SchedulerA scheduler defines the policy for how the
AbstractScheduledServiceshould run its task.
AbstractServiceBase class for implementing services that can handle
AbstractService.doStop()requests, responding to them with
doublevalue that may be updated atomically.
doublearray in which elements may be updated atomically.
AtomicLongMap<K>A map containing
longvalues that can be atomically updated.
AtomicsStatic utility methods pertaining to classes in the
CallablesStatic utility methods pertaining to the
ClosingFuture<V extends @Nullable Object>A step in a pipeline of an asynchronous computation. ClosingFuture.CombinerA builder of a
ClosingFuturestep that is derived from more than one input step.
ClosingFuture.Combiner2<V1 extends @Nullable Object,V2 extends @Nullable Object>A generic
ClosingFuture.Combinerthat lets you use a lambda or method reference to combine two
ClosingFuture.Combiner3<V1 extends @Nullable Object,V2 extends @Nullable Object,V3 extends @Nullable Object>A generic
ClosingFuture.Combinerthat lets you use a lambda or method reference to combine three
ClosingFuture.Combiner4<V1 extends @Nullable Object,V2 extends @Nullable Object,V3 extends @Nullable Object,V4 extends @Nullable Object>A generic
ClosingFuture.Combinerthat lets you use a lambda or method reference to combine four
ClosingFuture.Combiner5<V1 extends @Nullable Object,V2 extends @Nullable Object,V3 extends @Nullable Object,V4 extends @Nullable Object,V5 extends @Nullable Object>A generic
ClosingFuture.Combinerthat lets you use a lambda or method reference to combine five
ClosingFuture.DeferredCloserAn object that can capture objects to be closed later, when a
ClosingFuturepipeline is done.
ClosingFuture.PeekerAn object that can return the value of the
ClosingFutures that are passed to
ClosingFuture.ValueAndCloser<V extends @Nullable Object>An object that holds the final result of an asynchronous
ClosingFutureoperation and allows the user to close all the closeable objects that were captured during it for later closing.
ReentrantReadWriteLockinstances that detect potential deadlock by checking for cycles in lock acquisition order.
CycleDetectingLockFactory.WithExplicitOrdering<E extends Enum<E>>A
CycleDetectingLockFactory.WithExplicitOrderingprovides the additional enforcement of an application-specified ordering of lock acquisitions.
ExecutionListA support class for
ListenableFutureimplementations to manage their listeners.
ExecutionSequencerSerializes execution of tasks, somewhat like an "asynchronous
synchronizedblock." Each enqueued callable will not be submitted to its associated executor until the previous callable has returned -- and, if the previous callable was an
AsyncCallable, not until the
Futureit returned is done (successful, failed, or cancelled).
FakeTimeLimiterA TimeLimiter implementation which actually does not attempt to limit time at all. FluentFuture<V extends @Nullable Object>A
ListenableFuturethat supports fluent chains of operations.
BlockingDequewhich forwards all its method calls to another
BlockingQueuewhich forwards all its method calls to another
ForwardingExecutorServiceAn executor service which forwards all its method calls to another executor service. ForwardingFuture<V extends @Nullable Object>A
Futurewhich forwards all its method calls to another future.
ForwardingFuture.SimpleForwardingFuture<V extends @Nullable Object>A simplified version of
ForwardingFuturewhere subclasses can pass in an already constructed
Futureas the delegate.
ForwardingListenableFuture<V extends @Nullable Object>A
ListenableFuturewhich forwards all its method calls to another future.
ForwardingListenableFuture.SimpleForwardingListenableFuture<V extends @Nullable Object>A simplified version of
ForwardingListenableFuturewhere subclasses can pass in an already constructed
ListenableFutureas the delegate.
ForwardingListeningExecutorServiceA listening executor service which forwards all its method calls to another listening executor service. FuturesStatic utility methods pertaining to the
Futures.FutureCombiner<V extends @Nullable Object>A helper to create a new
ListenableFuturewhose result is generated from a combination of input futures.
JdkFutureAdaptersUtilities necessary for working with libraries that supply plain
ListenableFutureTask<V extends @Nullable Object>A
FutureTaskthat also implements the
MonitorA synchronization abstraction supporting waiting on arbitrary boolean conditions. Monitor.GuardA boolean condition for which a thread may wait. MoreExecutorsFactory and utility methods for
RateLimiterA rate limiter. RunnablesStatic utility methods pertaining to the
Service.ListenerA listener for the various state changes that a
Servicegoes through in its lifecycle.
ServiceManagerA manager for monitoring and controlling a set of services. ServiceManager.ListenerA listener for the aggregate state changes of the services that are under management. SettableFuture<V extends @Nullable Object>A
ListenableFuturewhose result can be set by a
SimpleTimeLimiterA TimeLimiter that runs method calls in the background using an
ThreadFactoryBuilderA 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 factory UncaughtExceptionHandlersFactories for
UninterruptiblesUtilities for treating interruptible operations as uninterruptible.
Enum Summary Enum Description CycleDetectingLockFactory.PoliciesPre-defined
Service.StateThe lifecycle states of a service.
Exception Summary Exception Description CycleDetectingLockFactory.PotentialDeadlockExceptionRepresents a detected cycle in lock acquisition ordering. UncheckedExecutionExceptionUnchecked variant of
UncheckedTimeoutExceptionUnchecked version of
Error Summary Error Description ExecutionError