Interface FailureCallback
- All Known Subinterfaces:
ListenableFutureCallback<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Deprecated.
Failure callback for a
ListenableFuture
.- Since:
- 4.1
- Author:
- Sebastien Deleuze
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Called when theListenableFuture
completes with failure.
-
Method Details
-
onFailure
Deprecated.Called when theListenableFuture
completes with failure.Note that Exceptions raised by this method are ignored.
- Parameters:
ex
- the failure
-
CompletableFuture.whenComplete(BiConsumer)