Interface PubSubProducerCallback

All Known Subinterfaces:
ChunkAwareCallback
All Known Implementing Classes:
AbstractPartitionWriter.ChildWriterProducerCallback, AbstractPartitionWriter.PartitionWriterProducerCallback, ActiveActiveProducerCallback, 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 Type
    Method
    Description
    void
    onCompletion(PubSubProduceResult produceResult, Exception exception)
    exception will be null if request was completed without an error.
  • Method Details

    • onCompletion

      void onCompletion(PubSubProduceResult produceResult, Exception exception)
      exception will be null if request was completed without an error.