private static final class AbstractCatchingFuture.CatchingFuture<V,X extends java.lang.Throwable> extends AbstractCatchingFuture<V,X,Function<? super X,? extends V>,V>
FluentFuture.TrustedFuture<V>
AbstractFuture.Trusted<V>
exceptionType, fallback, inputFuture
Constructor and Description |
---|
CatchingFuture(ListenableFuture<? extends V> input,
java.lang.Class<X> exceptionType,
Function<? super X,? extends V> fallback) |
Modifier and Type | Method and Description |
---|---|
(package private) V |
doFallback(Function<? super X,? extends V> fallback,
X cause)
Template method for subtypes to actually run the fallback.
|
(package private) void |
setResult(V result)
Template method for subtypes to actually set the result.
|
afterDone, create, create, pendingToString, run
addListener, cancel, get, get, isCancelled, isDone
addCallback, catching, catchingAsync, from, from, transform, transformAsync, withTimeout, withTimeout
interruptTask, maybePropagateCancellationTo, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted
V doFallback(Function<? super X,? extends V> fallback, X cause) throws java.lang.Exception
AbstractCatchingFuture
doFallback
in class AbstractCatchingFuture<V,X extends java.lang.Throwable,Function<? super X extends java.lang.Throwable,? extends V>,V>
java.lang.Exception
void setResult(V result)
AbstractCatchingFuture