Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
com.google.common.util.concurrent.testing |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCheckedFuture<V,X extends java.lang.Exception>
A delegating wrapper around a
ListenableFuture that adds support for the AbstractCheckedFuture.checkedGet() and AbstractCheckedFuture.checkedGet(long, TimeUnit) methods. |
class |
ForwardingCheckedFuture<V,X extends java.lang.Exception>
A future which forwards all its method calls to another future.
|
static class |
ForwardingCheckedFuture.SimpleForwardingCheckedFuture<V,X extends java.lang.Exception>
A simplified version of
ForwardingCheckedFuture where subclasses can pass in an already
constructed CheckedFuture as the delegate. |
private static class |
Futures.MappingCheckedFuture<V,X extends java.lang.Exception>
A checked future that uses a function to map from exceptions to the appropriate checked type.
|
(package private) static class |
ImmediateFuture.ImmediateFailedCheckedFuture<V,X extends java.lang.Exception> |
(package private) static class |
ImmediateFuture.ImmediateSuccessfulCheckedFuture<V,X extends java.lang.Exception> |
Modifier and Type | Field and Description |
---|---|
private CheckedFuture<V,X> |
ForwardingCheckedFuture.SimpleForwardingCheckedFuture.delegate |
Modifier and Type | Method and Description |
---|---|
protected abstract CheckedFuture<V,X> |
ForwardingCheckedFuture.delegate() |
protected CheckedFuture<V,X> |
ForwardingCheckedFuture.SimpleForwardingCheckedFuture.delegate() |
static <V,X extends java.lang.Exception> |
Futures.immediateCheckedFuture(V value)
Returns a
CheckedFuture which has its value set immediately upon construction. |
static <V,X extends java.lang.Exception> |
Futures.immediateFailedCheckedFuture(X exception)
Returns a
CheckedFuture which has an exception set immediately upon construction. |
static <V,X extends java.lang.Exception> |
Futures.makeChecked(ListenableFuture<V> future,
Function<? super java.lang.Exception,X> mapper)
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<V,X> delegate) |
Modifier and Type | Method and Description |
---|---|
protected abstract <V> CheckedFuture<V,?> |
AbstractCheckedFutureTest.createCheckedFuture(V value,
java.lang.Exception except,
java.util.concurrent.CountDownLatch waitOn)
More specific type for the create method.
|