Interface FutureFallback<V>
- Type Parameters:
V
- the result type of the provided backupFuture
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
Provides a backup
Future
to replace an earlier failed Future
.
An implementation of this interface can be applied to an input Future
with Futures.withFallback(com.google.common.util.concurrent.ListenableFuture<? extends V>, com.google.common.util.concurrent.FutureFallback<? extends V>)
.- Since:
- 14.0
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns aFuture
to be used in place of theFuture
that failed with the given exception.
-
Method Details
-
create
Deprecated.Returns aFuture
to be used in place of theFuture
that failed with the given exception. The exception is provided so that theFallback
implementation can conditionally determine whether to propagate the exception or to attempt to recover.- Parameters:
t
- the exception that made the future fail. If the future'sget
method throws anExecutionException
, then the cause is passed to this method. Any other thrown object is passed unaltered.- Throws:
Exception
-