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 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.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 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)
-