Top Description Methods
org.springframework.util.concurrent

public Interface FailureCallback

Known Direct Subinterfaces
org.springframework.util.concurrent.ListenableFutureCallback
Annotations
@Deprecated
since:6.0
@FunctionalInterface
Imports
java.util.function.BiConsumer

Deprecated

since 6.0.

as of 6.0, in favor of java.util.concurrent.CompletableFuture#whenComplete(BiConsumer)

Failure callback for a ListenableFuture.
Author
Sebastien Deleuze
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public void
onFailure(Throwable
the failure
ex
)

Called when the ListenableFuture completes with failure.

Method Detail

onFailureback to summary
public void onFailure(Throwable ex)

Called when the ListenableFuture completes with failure.

Note that Exceptions raised by this method are ignored.

Parameters
ex:Throwable

the failure