## 接口的使用
org.springframework.util.concurrent.FailureCallback

- 使用FailureCallback的程序包
  程序包 | 说明
  --- | ---
  org.springframework.util.concurrent | Useful generic `java.util.concurrent.Future` extension.

- - ### org.springframework.util.concurrent中FailureCallback的使用

    org.springframework.util.concurrent中FailureCallback的子接口
    限定符和类型 | 接口和说明
    --- | ---
    `interface` | `ListenableFutureCallback<T>` Callback mechanism for the outcome, success or failure, from a `ListenableFuture`.

    参数类型为FailureCallback的org.springframework.util.concurrent中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | CompletableToListenableFutureAdapter.`addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback)`
    `void` | ListenableFuture.`addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback)` Java 8 lambda-friendly alternative with success and failure callbacks.
    `void` | ListenableFutureAdapter.`addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback)`
    `void` | ListenableFutureTask.`addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback)`
    `void` | SettableListenableFuture.`addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback)`
    `void` | ListenableFutureCallbackRegistry.`addFailureCallback(FailureCallback callback)` Add the given failure callback to this registry.