Interface KafkaInboundEndpoint

All Known Implementing Classes:
KafkaInboundGateway, KafkaMessageDrivenChannelAdapter

public interface KafkaInboundEndpoint
Implementations of this interface will generally support a retry template for retrying incoming deliveries, and this supports adding common attributes to the retry context.
Since:
6.0
Author:
Gary Russell, Artem Bilan
  • Field Details

  • Method Details

    • doWithRetry

      default void doWithRetry(org.springframework.core.retry.RetryTemplate template, @Nullable RecoveryCallback<?> callback, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, @Nullable org.springframework.kafka.support.Acknowledgment acknowledgment, @Nullable org.apache.kafka.clients.consumer.Consumer<?,?> consumer, Runnable runnable)
      Execute the runnable with the retry template and recovery callback.
      Parameters:
      template - the template.
      callback - the callback.
      record - the record (or records).
      acknowledgment - the acknowledgment.
      consumer - the consumer.
      runnable - the runnable.