|
||||||||||
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,E extends Exception>
A CheckedFuture is an extension of Future that includes
versions of the get methods that can throw a checked exception and
allows listeners to be attached to the future. |
Classes in com.google.common.util.concurrent that implement ListenableFuture | |
---|---|
class |
AbstractCheckedFuture<V,E extends Exception>
A delegating wrapper around a ListenableFuture that adds support for
the AbstractCheckedFuture.checkedGet() and AbstractCheckedFuture.checkedGet(long, TimeUnit) methods. |
class |
AbstractListenableFuture<V>
An abstract base implementation of the listener support provided by ListenableFuture . |
class |
ForwardingListenableFuture<V>
A ForwardingFuture that also implements ListenableFuture . |
class |
ListenableFutureTask<V>
A FutureTask that also implements the ListenableFuture
interface. |
class |
ValueFuture<V>
A simple ListenableFuture that holds a value or an exception. |
Fields in com.google.common.util.concurrent declared as ListenableFuture | |
---|---|
protected ListenableFuture<V> |
AbstractCheckedFuture.delegate
The delegate, used to pass along all our methods. |
Methods in com.google.common.util.concurrent that return ListenableFuture | ||
---|---|---|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function,
Executor exec)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
|
static
|
Futures.compose(ListenableFuture<I> future,
Function<? super I,? extends O> function)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
|
static
|
Futures.compose(ListenableFuture<I> future,
Function<? super I,? extends O> function,
Executor exec)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
|
protected abstract ListenableFuture<V> |
ForwardingListenableFuture.delegate()
|
|
static
|
Futures.immediateFailedFuture(Throwable throwable)
Creates a ListenableFuture which has an exception set immediately
upon construction. |
|
static
|
Futures.immediateFuture(T value)
Creates a ListenableFuture which has its value set immediately upon
construction. |
|
static
|
Futures.makeListenable(Future<T> future)
Creates a ListenableFuture out of a normal Future . |
Methods in com.google.common.util.concurrent with parameters of type ListenableFuture | ||
---|---|---|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function,
Executor exec)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
|
static
|
Futures.compose(ListenableFuture<I> future,
Function<? super I,? extends O> function)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
|
static
|
Futures.compose(ListenableFuture<I> future,
Function<? super I,? extends O> function,
Executor exec)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
Method parameters in com.google.common.util.concurrent with type arguments of type ListenableFuture | ||
---|---|---|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
|
static
|
Futures.chain(ListenableFuture<I> input,
Function<? super I,? extends ListenableFuture<? extends O>> function,
Executor exec)
Creates a new ListenableFuture that wraps another
ListenableFuture . |
Constructors in com.google.common.util.concurrent with parameters of type ListenableFuture | |
---|---|
AbstractCheckedFuture(ListenableFuture<V> delegate)
Constructs an AbstractCheckedFuture that wraps a delegate. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |