Top Description Methods
org.springframework.util.concurrent

public Interface SuccessCallback<T>

Known Direct Subinterfaces
org.springframework.util.concurrent.ListenableFutureCallback
Annotations
@Deprecated
since:6.0
@FunctionalInterface
Type Parameters
<T>
the result type
Imports
java.util.function.BiConsumer, org.springframework.lang.Nullable

Deprecated

since 6.0.

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

Success callback for a ListenableFuture.
Author
Sebastien Deleuze
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public void
onSuccess(T
the result
result
)

Called when the ListenableFuture completes with success.

Method Detail

onSuccessback to summary
public void onSuccess(T result)

Called when the ListenableFuture completes with success.

Note that Exceptions raised by this method are ignored.

Parameters
result:T

the result