Uses of Interface
com.google.common.util.concurrent.CheckedFuture
-
Packages that use CheckedFuture Package Description com.google.common.util.concurrent Concurrency utilities.com.google.common.util.concurrent.testing -
-
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.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>
Fields in com.google.common.util.concurrent declared as CheckedFuture Modifier and Type Field Description private CheckedFuture<V,X>
ForwardingCheckedFuture.SimpleForwardingCheckedFuture. 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)
-
Uses of CheckedFuture in com.google.common.util.concurrent.testing
Methods in com.google.common.util.concurrent.testing that return CheckedFuture Modifier and Type Method 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.
-