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 classAbstractCheckedFuture<V,X extends java.lang.Exception>A delegating wrapper around aListenableFuturethat adds support for theAbstractCheckedFuture.checkedGet()andAbstractCheckedFuture.checkedGet(long, TimeUnit)methods.classForwardingCheckedFuture<V,X extends java.lang.Exception>A future which forwards all its method calls to another future.static classForwardingCheckedFuture.SimpleForwardingCheckedFuture<V,X extends java.lang.Exception>A simplified version ofForwardingCheckedFuturewhere subclasses can pass in an already constructedCheckedFutureas the delegate.private static classFutures.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 classImmediateFuture.ImmediateFailedCheckedFuture<V,X extends java.lang.Exception>(package private) static classImmediateFuture.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. delegateMethods 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 aCheckedFuturewhich has its value set immediately upon construction.static <V,X extends java.lang.Exception>
CheckedFuture<V,X>Futures. immediateFailedCheckedFuture(X exception)Returns aCheckedFuturewhich 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 aCheckedFutureout of a normalListenableFutureand aFunctionthat maps fromExceptioninstances 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.
-