Uses of Interface
com.google.common.util.concurrent.CheckedFuture
-
Packages that use CheckedFuture Package Description com.google.common.util.concurrent Concurrency utilities. -
-
Uses of CheckedFuture in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent that implement CheckedFuture Modifier and Type Class Description class
AbstractCheckedFuture<V,X extends java.lang.Exception>
A delegating wrapper around aListenableFuture
that adds support for theAbstractCheckedFuture.checkedGet()
andAbstractCheckedFuture.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 ofForwardingCheckedFuture
where subclasses can pass in an already constructedCheckedFuture
as the delegate.Methods in com.google.common.util.concurrent that return CheckedFuture Modifier and Type Method Description protected abstract CheckedFuture<V,X>
ForwardingCheckedFuture. delegate()
protected CheckedFuture<V,X>
ForwardingCheckedFuture.SimpleForwardingCheckedFuture. delegate()
static <V,X extends java.lang.Exception>
CheckedFuture<V,X>Futures. immediateCheckedFuture(V value)
Returns aCheckedFuture
which has its value set immediately upon construction.static <V,X extends java.lang.Exception>
CheckedFuture<V,X>Futures. immediateFailedCheckedFuture(X exception)
Returns aCheckedFuture
which has an exception set immediately upon construction.static <V,X extends java.lang.Exception>
CheckedFuture<V,X>Futures. makeChecked(ListenableFuture<V> future, Function<? super java.lang.Exception,X> mapper)
Creates aCheckedFuture
out of a normalListenableFuture
and aFunction
that maps fromException
instances into the appropriate checked type.Constructors in com.google.common.util.concurrent with parameters of type CheckedFuture Constructor Description SimpleForwardingCheckedFuture(CheckedFuture<V,X> delegate)
-