|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ListenableFuture | |
|---|---|
| com.google.common.util.concurrent | Concurrency utilities. |
| Uses of ListenableFuture in com.google.common.util.concurrent |
|---|
| Subinterfaces of ListenableFuture in com.google.common.util.concurrent | |
|---|---|
interface |
CheckedFuture<V,X extends Exception>
A CheckedFuture is a ListenableFuture that includes versions
of the get methods that can throw a checked exception. |
| Methods in com.google.common.util.concurrent that return ListenableFuture | ||
|---|---|---|
static
|
Futures.allAsList(Iterable<? extends ListenableFuture<? extends V>> futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its input futures, if all succeed. |
|
static
|
Futures.allAsList(ListenableFuture<? extends V>... futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its input futures, if all succeed. |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function)
Returns a new ListenableFuture whose result is asynchronously
derived from the result of the given Future. |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function,
Executor exec)
Returns a new ListenableFuture whose result is asynchronously
derived from the result of the given Future. |
|
protected abstract ListenableFuture<V> |
ForwardingListenableFuture.delegate()
|
|
protected ListenableFuture<V> |
ForwardingListenableFuture.SimpleForwardingListenableFuture.delegate()
|
|
static
|
Futures.immediateFailedFuture(Throwable throwable)
Returns a ListenableFuture which has an exception set immediately
upon construction. |
|
static
|
Futures.immediateFuture(V value)
Creates a ListenableFuture which has its value set immediately upon
construction. |
|
static
|
JdkFutureAdapters.listenInPoolThread(Future<V> future)
Assigns a thread to the given Future to provide ListenableFuture functionality. |
|
static
|
Futures.makeListenable(Future<V> future)
Deprecated. Prefer to create ListenableFuture instances with SettableFuture, MoreExecutors.listeningDecorator(
java.util.concurrent.ExecutorService), ListenableFutureTask,
AbstractFuture, and other utilities over creating plain Future instances to be upgraded to ListenableFuture after the
fact. If this is not possible, the functionality of makeListenable is now available as JdkFutureAdapters.listenInPoolThread(java.util.concurrent.Future. This method is scheduled
for deletion from Guava in Guava release 11.0. |
|
ListenableFuture<Service.State> |
AbstractIdleService.start()
|
|
ListenableFuture<Service.State> |
AbstractExecutionThreadService.start()
|
|
ListenableFuture<Service.State> |
AbstractService.start()
|
|
ListenableFuture<Service.State> |
Service.start()
If the service state is Service.State.NEW, this initiates service startup
and returns immediately. |
|
ListenableFuture<Service.State> |
ForwardingService.start()
|
|
ListenableFuture<Service.State> |
AbstractIdleService.stop()
|
|
ListenableFuture<Service.State> |
AbstractExecutionThreadService.stop()
|
|
ListenableFuture<Service.State> |
AbstractService.stop()
|
|
ListenableFuture<Service.State> |
Service.stop()
If the service is starting or running, this initiates service shutdown and returns immediately. |
|
ListenableFuture<Service.State> |
ForwardingService.stop()
|
|
|
ForwardingListeningExecutorService.submit(Callable<T> task)
|
|
|
ListeningExecutorService.submit(Callable<T> task)
|
|
ListenableFuture<?> |
ForwardingListeningExecutorService.submit(Runnable task)
|
|
ListenableFuture<?> |
ListeningExecutorService.submit(Runnable task)
|
|
|
ForwardingListeningExecutorService.submit(Runnable task,
T result)
|
|
|
ListeningExecutorService.submit(Runnable task,
T result)
|
|
static
|
Futures.successfulAsList(Iterable<? extends ListenableFuture<? extends V>> futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its successful input futures. |
|
static
|
Futures.successfulAsList(ListenableFuture<? extends V>... futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its successful input futures. |
|
static
|
Futures.transform(ListenableFuture<I> future,
Function<? super I,? extends O> function)
Returns a new ListenableFuture whose result is the product of
applying the given Function to the result of the given Future. |
|
static
|
Futures.transform(ListenableFuture<I> future,
Function<? super I,? extends O> function,
Executor exec)
Returns a new ListenableFuture whose result is the product of
applying the given Function to the result of the given Future. |
|
| Methods in com.google.common.util.concurrent with parameters of type ListenableFuture | ||
|---|---|---|
static
|
Futures.addCallback(ListenableFuture<V> future,
FutureCallback<? super V> callback)
Registers separate success and failure callbacks to be run when the Future's computation is complete or, if the computation is already complete, immediately. |
|
static
|
Futures.addCallback(ListenableFuture<V> future,
FutureCallback<? super V> callback,
Executor executor)
Registers separate success and failure callbacks to be run when the Future's computation is complete or, if the computation is already complete, immediately. |
|
static
|
Futures.allAsList(ListenableFuture<? extends V>... futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its input futures, if all succeed. |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function)
Returns a new ListenableFuture whose result is asynchronously
derived from the result of the given Future. |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function,
Executor exec)
Returns a new ListenableFuture whose result is asynchronously
derived from the result of the given Future. |
|
static
|
Futures.makeChecked(ListenableFuture<V> future,
Function<Exception,X> mapper)
Creates a CheckedFuture out of a normal ListenableFuture
and a Function that maps from Exception instances into the
appropriate checked type. |
|
static
|
Futures.successfulAsList(ListenableFuture<? extends V>... futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its successful input futures. |
|
static
|
Futures.transform(ListenableFuture<I> future,
Function<? super I,? extends O> function)
Returns a new ListenableFuture whose result is the product of
applying the given Function to the result of the given Future. |
|
static
|
Futures.transform(ListenableFuture<I> future,
Function<? super I,? extends O> function,
Executor exec)
Returns a new ListenableFuture whose result is the product of
applying the given Function to the result of the given Future. |
|
| Method parameters in com.google.common.util.concurrent with type arguments of type ListenableFuture | ||
|---|---|---|
static
|
Futures.allAsList(Iterable<? extends ListenableFuture<? extends V>> futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its input futures, if all succeed. |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function)
Returns a new ListenableFuture whose result is asynchronously
derived from the result of the given Future. |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function,
Executor exec)
Returns a new ListenableFuture whose result is asynchronously
derived from the result of the given Future. |
|
static
|
Futures.successfulAsList(Iterable<? extends ListenableFuture<? extends V>> futures)
Creates a new ListenableFuture whose value is a list containing the
values of all its successful input futures. |
|
| Constructors in com.google.common.util.concurrent with parameters of type ListenableFuture | |
|---|---|
AbstractCheckedFuture(ListenableFuture<V> delegate)
Constructs an AbstractCheckedFuture that wraps a delegate. |
|
ForwardingListenableFuture.SimpleForwardingListenableFuture(ListenableFuture<V> delegate)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||