Commonly used types include ClosingFuture, ListenableFuture, and Service.
Commonly used utilities include Futures, MoreExecutors, ThreadFactoryBuilder, and Uninterruptibles.
This package is a part of the open-source Guava library.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | |
| public interface | AsyncFunction<I extends @Nullable Object, O extends @Nullable Object>
Transforms a value, possibly asynchronously. |
| public interface | FutureCallback<V extends @Nullable Object>
A callback for accepting the results of a |
| public interface | |
| public interface | ListenableScheduledFuture<V extends @Nullable Object>
Helper interface to implement both |
| public interface | ListeningExecutorService
An |
| public interface | ListeningScheduledExecutorService
A |
| public interface | Service
An object with an operational state, plus asynchronous |
| pack-priv interface | ServiceManagerBridge
Superinterface of |
| public interface | TimeLimiter
Imposes a time limit on method calls. |
| Modifier and Type | Annotation and Description |
|---|---|
| pack-priv @interface | ElementTypesAreNonnullByDefault
Marks all "top-level" types as non-null in a way that is recognized by Kotlin. |
| pack-priv @interface | ParametricNullness
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract class | |
| public abstract class | AbstractExecutionThreadService
Base class for services that can implement |
| public abstract class | AbstractFuture<V extends @Nullable Object>
An abstract implementation of |
| public abstract class | AbstractIdleService
Base class for services that do not need a thread while "running" but may need one during startup and shutdown. |
| public abstract class | AbstractListeningExecutorService
Abstract |
| public abstract class | AbstractScheduledService
Base class for services that can implement |
| public abstract class | AbstractService
Base class for implementing services that can handle |
| pack-priv abstract class | |
| pack-priv abstract class | AggregateFuture<
the type of the individual inputs InputT extends @Nullable Object, the type of the output (i.e. this) future OutputT extends @Nullable Object>A future whose value is derived from a collection of input futures. |
| pack-priv abstract class | AggregateFutureState<OutputT extends @Nullable Object>
A helper which does some thread-safe operations for aggregate futures, which must be implemented differently in GWT. |
| public class | AtomicDouble
A |
| public class | AtomicDoubleArray
A |
| public class | |
| public class | Atomics
Static utility methods pertaining to classes in the |
| public class | |
| public class | ClosingFuture<
the type of the value of this step V extends @Nullable Object>A step in a pipeline of an asynchronous computation. |
| pack-priv abstract class | CollectionFuture<V extends @Nullable Object, C extends @Nullable Object>
Aggregate future that collects (stores) results of each future. |
| pack-priv class | CombinedFuture<V extends @Nullable Object>
Aggregate future that computes its value by calling a callable. |
| public class | CycleDetectingLockFactory
The |
| public class | |
| public class | ExecutionList
A support class for |
| public class | ExecutionSequencer
Serializes execution of tasks, somewhat like an "asynchronous |
| public class | FakeTimeLimiter
A TimeLimiter implementation which actually does not attempt to limit time at all. |
| public abstract class | FluentFuture<V extends @Nullable Object>
A |
| public abstract class | ForwardingBlockingDeque<E>
A |
| public abstract class | ForwardingBlockingQueue<
the type of elements held in this collection E>A |
| pack-priv abstract class | ForwardingCondition
Forwarding wrapper around a |
| public abstract class | ForwardingExecutorService
An executor service which forwards all its method calls to another executor service. |
| pack-priv class | ForwardingFluentFuture<V extends @Nullable Object>
|
| public abstract class | ForwardingFuture<V extends @Nullable Object>
A |
| public abstract class | ForwardingListenableFuture<V extends @Nullable Object>
A |
| public abstract class | ForwardingListeningExecutorService
A listening executor service which forwards all its method calls to another listening executor service. |
| pack-priv abstract class | ForwardingLock
Forwarding wrapper around a |
| public class | |
| pack-priv class | FuturesGetChecked
Static methods used to implement |
| pack-priv abstract class | GwtFluentFutureCatchingSpecialization<V extends @Nullable Object>
Hidden superclass of |
| pack-priv abstract class | GwtFuturesCatchingSpecialization
Hidden superclass of |
| pack-priv class | |
| pack-priv class | Internal
This class is for |
| pack-priv abstract class | |
| public class | JdkFutureAdapters
Utilities necessary for working with libraries that supply plain |
| pack-priv class | LazyLogger
A holder for a |
| public class | ListenableFutureTask<V extends @Nullable Object>
A |
| pack-priv class | |
| public class | Monitor
A synchronization abstraction supporting waiting on arbitrary boolean conditions. |
| public class | MoreExecutors
Factory and utility methods for |
| pack-priv class | NullnessCasts
A utility method to perform unchecked casts to suppress errors produced by nullness analyses. |
| pack-priv class | OverflowAvoidingLockSupport
Works around an android bug, where parking for more than INT_MAX seconds can produce an abort signal on 32 bit devices running Android Q. |
| pack-priv class | Partially
Outer class that exists solely to let us write |
| pack-priv class | Platform
Methods factored out so that they can be emulated differently in GWT. |
| public abstract class | RateLimiter
A rate limiter. |
| public class | |
| pack-priv class | SequentialExecutor
Executor ensuring that all Runnables submitted are executed in order, using the provided Executor, and sequentially such that no two will ever be running at the same time. |
| public class | ServiceManager
A manager for monitoring and controlling a set of services. |
| public class | SettableFuture<V extends @Nullable Object>
A |
| public class | SimpleTimeLimiter
A TimeLimiter that runs method calls in the background using an |
| pack-priv abstract class | |
| public abstract class | |
| public class | ThreadFactoryBuilder
A ThreadFactory builder, providing any combination of these features:
|
| pack-priv class | |
| pack-priv class | TrustedListenableFutureTask<V extends @Nullable Object>
A |
| public class | UncaughtExceptionHandlers
Factories for |
| public class | UncheckedExecutionException
Unchecked variant of |
| public class | UncheckedTimeoutException
Unchecked version of |
| public class | Uninterruptibles
Utilities for treating interruptible operations as uninterruptible. |
| pack-priv abstract class | WrappingExecutorService
An abstract |
| pack-priv abstract class | WrappingScheduledExecutorService
An abstract |
| Modifier and Type | Enum and Description |
|---|---|
| pack-priv enum | DirectExecutor
An |