Class CompletableFutureCallback

  • All Implemented Interfaces:

    public class CompletableFutureCallback
    extends java.lang.Object
    implements PubSubProducerCallback
    Compose a CompletableFuture and Callback together to be a CompletableFutureCallback type. When the CompletableFutureCallback is called, the CompletableFuture internal state will be changed and the callback will be called. The caller can pass a CompletableFutureCallback to a function accepting a Callback parameter to get a CompletableFuture after the function returns.