public interface ListenerContainerWithDlqAndRetryCustomizer extends ListenerContainerCustomizer<org.springframework.kafka.listener.AbstractMessageListenerContainer<?,?>>
ListenerContainerCustomizer that provides access to dead letter
metadata.| Modifier and Type | Method and Description |
|---|---|
default void |
configure(org.springframework.kafka.listener.AbstractMessageListenerContainer<?,?> container,
String destinationName,
String group) |
void |
configure(org.springframework.kafka.listener.AbstractMessageListenerContainer<?,?> container,
String destinationName,
String group,
BiFunction<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>,Exception,org.apache.kafka.common.TopicPartition> dlqDestinationResolver,
org.springframework.util.backoff.BackOff backOff)
Configure the container.
|
default boolean |
retryAndDlqInBinding(String destinationName,
String group)
Return false to move retries and DLQ from the binding to a customized error handler
using the retry metadata and/or a
DeadLetterPublishingRecoverer when
configured via
configure(AbstractMessageListenerContainer, String, String, BiFunction, BackOff). |
default void configure(org.springframework.kafka.listener.AbstractMessageListenerContainer<?,?> container,
String destinationName,
String group)
configure in interface ListenerContainerCustomizer<org.springframework.kafka.listener.AbstractMessageListenerContainer<?,?>>void configure(org.springframework.kafka.listener.AbstractMessageListenerContainer<?,?> container,
String destinationName,
String group,
@Nullable
BiFunction<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>,Exception,org.apache.kafka.common.TopicPartition> dlqDestinationResolver,
@Nullable
org.springframework.util.backoff.BackOff backOff)
container - the container.destinationName - the destination name.group - the group.dlqDestinationResolver - a destination resolver for the dead letter topic (if
enableDlq).backOff - the backOff using retry properties (if configured).retryAndDlqInBinding(String, String)default boolean retryAndDlqInBinding(String destinationName, String group)
DeadLetterPublishingRecoverer when
configured via
configure(AbstractMessageListenerContainer, String, String, BiFunction, BackOff).destinationName - the destination name.group - the group.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.