Class CompletableFutureCallback

java.lang.Object
com.linkedin.venice.writer.CompletableFutureCallback
All Implemented Interfaces:
Measurable, PubSubProducerCallback

public class CompletableFutureCallback extends Object implements PubSubProducerCallback, Measurable
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.