Interface KafkaConsumerBackoffManager
- All Known Implementing Classes:
ContainerPartitionPausingBackOffManager
public interface KafkaConsumerBackoffManager
Interface for backing off a
MessageListenerContainer
until a given dueTimestamp, if such timestamp is in the future.- Since:
- 2.7
- Author:
- Tomaz Fernandes, Gary Russell
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Provides the state that will be used for backing off. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createContext
(long dueTimestamp, String listenerId, org.apache.kafka.common.TopicPartition topicPartition, org.apache.kafka.clients.consumer.Consumer<?, ?> messageConsumer)
-
Method Details
-
backOffIfNecessary
-
createContext
default KafkaConsumerBackoffManager.Context createContext(long dueTimestamp, String listenerId, org.apache.kafka.common.TopicPartition topicPartition, org.apache.kafka.clients.consumer.Consumer<?, ?> messageConsumer)
-