| Package | Description |
|---|---|
| com.google.common.util.concurrent |
Concurrency utilities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCheckedFuture<V
A delegating wrapper around a
ListenableFuture that adds support for the
AbstractCheckedFuture and
AbstractCheckedFuture methods.
|
class |
ForwardingCheckedFuture<V
A future which forwards all its method calls to another future.
|
static class |
ForwardingCheckedFuture
A simplified version of
ForwardingCheckedFuture where subclasses can pass in an already constructed
CheckedFuture as the delegate.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract CheckedFuture |
ForwardingCheckedFuture.delegate()
|
protected CheckedFuture |
ForwardingCheckedFuture.SimpleForwardingCheckedFuture.delegate()
|
static <V |
Futures.immediateCheckedFuture(V value)
Returns a
CheckedFuture which has its value set immediately upon construction.
|
static <V |
Futures.immediateFailedCheckedFuture(X exception)
Returns a
CheckedFuture which has an exception set immediately upon construction.
|
static <V |
Futures.makeChecked(ListenableFuture
Creates a
CheckedFuture out of a normal
ListenableFuture and a
Function that maps from
Exception instances into the appropriate checked type.
|
| Constructor and Description | |
|---|---|
SimpleForwardingCheckedFuture(CheckedFuture
|