Package org.springframework.kafka.listener
@NonNullApi
package org.springframework.kafka.listener
Package for kafka listeners
-
ClassDescriptionManages the
ConsumerSeekAware.ConsumerSeekCallback
s for the listener.Base class forKafkaBackOffManagerFactory
implementations.The base implementation for theMessageListenerContainer
.Listener for handling incoming Kafka messages, propagating an acknowledgment handle that recipients can invoke when the message has been processed.Listener for handling incoming Kafka messages, propagating an acknowledgment handle that recipients can invoke when the message has been processed.Invoked by a listener container with remaining, unprocessed, records (including the failed record).Handler for the provided back off time, listener container and exception.Listener for handling a batch of incoming Kafka messages, propagating an acknowledgment handle that recipients can invoke when the message has been processed.Listener for handling a batch of incoming Kafka messages, propagating an acknowledgment handle that recipients can invoke when the message has been processed.Listener for handling a batch of incoming Kafka messages; the list is created from the consumer records object returned by a poll.BatchInterceptor<K,V> An interceptor for batches of records.An exception thrown by user code to inform the framework which record in a batch has failed.BatchMessageListener<K,V> Listener for handling a batch of incoming Kafka messages; the list is created from the consumer records object returned by a poll.ACommonErrorHandler
that stops the container when an error occurs.An error handler that delegates to different error handlers, depending on the exception type.Listener container error handling contract.TheCommonErrorHandler
implementation for logging exceptions.ACommonErrorHandler
that delegates to differentCommonErrorHandler
s for record and batch listeners.ABatchInterceptor
that delegates to one or moreBatchInterceptor
s in order.ARecordInterceptor
that delegates to one or moreRecordInterceptor
s in order.Creates 1 or moreKafkaMessageListenerContainer
s based onconcurrency
.An error handler that has access to the consumer.Listener for handling individual incoming Kafka messages.A rebalance listener that provides access to the consumer object.AConsumerRecordRecoverer
that supports getting a reference to theConsumer
.Objects that can publish consumer pause/resume events.Common consumer properties.ABiConsumer
extension for recovering consumer records.Listeners that implement this interface are provided with aConsumerSeekAware.ConsumerSeekCallback
which can be used to perform a seek operation.A callback that a listener can invoke to seek to a specific offset.A group of listener containers.Sequence the starting of container groups when all containers in the previous group are idle.A manager that backs off consumption for a given topic if the timestamp provided is not due.A factory forContainerPartitionPausingBackOffManager
.ABackOffHandler
that pauses the container for the backoff.Contains runtime properties for a listener container.The offset commit behavior enumeration.Offset commit behavior during assignment.Mode for exactly once semantics.AConsumerRecordRecoverer
that publishes a failed record to a dead-letter topic.Use this to provide a custom implementation to take complete control over exception header creation for the output record.Container class for the name of the headers that will be added to the produced record.Provides a convenient API for creatingDeadLetterPublishingRecoverer.HeaderNames
.Header names for exception headers.Bits representing which headers to add.Header names for original record property headers.AHeader
that indicates that this header should replace any existing headers with this name, rather than being appended to the headers, which is the normal behavior.Default implementation ofAfterRollbackProcessor
.DefaultBackOffHandler
; suspends the thread for the back off.An error handler that, for record listeners, seeks to the current offset for each topic in the remaining records.Classes implementing this interface allow containers to determine the type of the ultimate listener.A component implementing this interface can provide the next delivery attempt.Utilities for error handling.Supports exception classification.Subclass ofFailedRecordProcessor
that can process (and recover) a batch.Common super class for classes that deal with failing to consume a consumer record.Top level interface for listeners.Generic message listener container; adds parameters.Exception thrown when the consumer should not yet consume the message due to backOff.Creates aKafkaBackOffManagerFactory
instance.Interface for backing off aMessageListenerContainer
until a given dueTimestamp, if such timestamp is in the future.Provides the state that will be used for backing off.A top level abstract class for classes that can be configured with aKafkaException.Level
.An error handler which is called when a@KafkaListener
method throws an exception.Single-threaded Message listener container using the JavaConsumer
supporting auto-partition assignment or user-configured assignment.Service for pausing and resuming ofMessageListenerContainer
.A registry for listener containers.The listener specificKafkaException
extension.Metadata associated to aKafkaListener
.Defines the listener type.Listener utilities.Logs commit results at DEBUG level for success and ERROR for failures.AKafkaListenerErrorHandler
that supports manual acks.MessageListener<K,V> Listener for handling individual incoming Kafka messages.Internal abstraction used by the framework representing a message listener container.Provider forOffsetAndMetadata
.RecordInterceptor<K,V> An interceptor forConsumerRecord
invoked by the listener container before and after invoking the listener.Called to determine whether a record should be skipped.A listener for retry activity.Seek utilities.A general interface for managing thread-bound resources when aConsumer
is available.AKafkaException
that records the timestamp of when it was thrown.