Package com.linkedin.venice.pubsub.api
Interface PubSubProducerCallback
- All Known Subinterfaces:
ChunkAwareCallback
- All Known Implementing Classes:
AbstractPartitionWriter.ChildWriterProducerCallback
,AbstractPartitionWriter.PartitionWriterProducerCallback
,ActiveActiveProducerCallback
,ChainedPubSubCallback
,CompletableFutureCallback
,LeaderProducerCallback
,PubSubProducerCallbackSimpleImpl
public interface PubSubProducerCallback
A callback interface that users of PubSubProducerAdapter should implement if they want
to execute some code once PubSubProducerAdapter#sendMessage request is completed.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCompletion
(PubSubProduceResult produceResult, Exception exception) exception will be null if request was completed without an error.default void
setInternalCallback
(PubSubProducerCallback internalCallback) Add internal callback into the current callback.
-
Method Details
-
onCompletion
exception will be null if request was completed without an error. -
setInternalCallback
Add internal callback into the current callback. Default behavior is doing nothing.
-