Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCheckedFuture<V,X extends 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 Exception>
A future which forwards all its method calls to another future.
|
static class |
ForwardingCheckedFuture.SimpleForwardingCheckedFuture<V,X extends Exception>
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<V,X> |
ForwardingCheckedFuture.delegate() |
protected CheckedFuture<V,X> |
ForwardingCheckedFuture.SimpleForwardingCheckedFuture.delegate() |
static <V,X extends Exception> |
Futures.immediateCheckedFuture(V value)
Returns a
CheckedFuture which has its value set immediately upon
construction. |
static <V,X extends Exception> |
Futures.immediateFailedCheckedFuture(X exception)
Returns a
CheckedFuture which has an exception set immediately upon
construction. |
static <V,X extends Exception> |
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. |
Constructor and Description |
---|
ForwardingCheckedFuture.SimpleForwardingCheckedFuture(CheckedFuture<V,X> delegate) |
Copyright © 2010-2014. All Rights Reserved.