Interface FutureCallback<V>
-
@Deprecated(since="2022-12-01") public interface FutureCallback<V>Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023A callback for accepting the results of aFuturecomputation asynchronously.To attach to a
ListenableFutureuseFutures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>).- Since:
- 10.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidonFailure(java.lang.Throwable t)Deprecated.Invoked when aFuturecomputation fails or is canceled.voidonSuccess(V result)Deprecated.Invoked with the result of theFuturecomputation when it is successful.
-
-
-
Method Detail
-
onSuccess
void onSuccess(@Nullable V result)Deprecated.Invoked with the result of theFuturecomputation when it is successful.
-
onFailure
void onFailure(java.lang.Throwable t)
Deprecated.Invoked when aFuturecomputation fails or is canceled.If the future's
getmethod throws anExecutionException, then the cause is passed to this method. Any other thrown object is passed unaltered.
-
-