Interface FutureCallback<V>
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
A callback for accepting the results of a
Future
computation asynchronously.
To attach to a ListenableFuture
use Futures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>)
.
- Since:
- 10.0
-
Method Summary
-
Method Details
-
onSuccess
Deprecated.Invoked with the result of theFuture
computation when it is successful. -
onFailure
Deprecated.Invoked when aFuture
computation fails or is canceled.If the future's
get
method throws anExecutionException
, then the cause is passed to this method. Any other thrown object is passed unaltered.
-