Package org.springframework.kafka.listener
@NonNullApi
package org.springframework.kafka.listener
Package for kafka listeners
-
ClassDescriptionManages the
ConsumerSeekAware.ConsumerSeekCallbacks for the listener.Base class forKafkaBackOffManagerFactoryimplementations.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).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.Handles errors thrown during the execution of aBatchMessageListener.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.Deprecated.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.ACommonErrorHandlerthat stops the container when an error occurs.An error handler that delegates to different error handlers, depending on the exception type.Replacement forErrorHandlerandBatchErrorHandlerand their sub-interfaces.TheCommonErrorHandlerimplementation for logging exceptions.ACommonErrorHandlerthat delegates to differentCommonErrorHandlers for record and batch listeners.ABatchInterceptorthat delegates to one or moreBatchInterceptors in order.ARecordInterceptorthat delegates to one or moreRecordInterceptors in order.Creates 1 or moreKafkaMessageListenerContainers based onconcurrency.Deprecated.in favor ofCommonDelegatingErrorHandler.Deprecated.in favor ofCommonDelegatingErrorHandler.An error handler that has access to the consumer, for example to adjust offsets after an error.An error handler that has access to the consumer, for example to adjust offsets after an error.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.ARecordInterceptorthat has access to theConsumer.AConsumerRecordRecovererthat supports getting a reference to theConsumer.Common consumer properties.ABiConsumerextension for recovering consumer records.Listeners that implement this interface are provided with aConsumerSeekAware.ConsumerSeekCallbackwhich can be used to perform a seek operation.A callback that a listener can invoke to seek to a specific offset.An error handler that has access to the batch of records from the last poll the consumer, and the container.An error handler that has access to the unprocessed records from the last poll (including the failed record), the consumer, and the container.A group of listener containers.Sequence the starting of container groups when all containers in the previous group are idle.Contains runtime properties for a listener container.The offset commit behavior enumeration.Offset commit behavior during assignment.Mode for exactly once semantics.Deprecated.in favor ofCommonContainerStoppingErrorHandler.Deprecated.in favor ofCommonContainerStoppingErrorHandler.AConsumerRecordRecovererthat 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.Default implementation ofAfterRollbackProcessor.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.Handles errors thrown during the execution of aMessageListener.Utilities for error handling.Supports exception classification.Subclass ofFailedRecordProcessorthat can process (and recover) a batch.Common super class for classes that deal with failing to consume a consumer record.A generic error handler.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 aKafkaBackOffManagerFactoryinstance.Interface for backing off aMessageListenerContaineruntil a given dueTimestamp, if such timestamp is in the future.Provides the state that will be used for backing off.Adjusts the consumption timing of the given consumer to try to have it consume the next message at a given time until due.A top level abstract class for classes that can be configured with aKafkaException.Level.An error handler which is called when a@KafkaListenermethod throws an exception.Single-threaded Message listener container using the JavaConsumersupporting auto-partition assignment or user-configured assignment.A registry for listener containers.The listener specificKafkaExceptionextension.A batch error handler that is capable of invoking the listener during error handling.Defines the listener type.Listener utilities.Logs commit results at DEBUG level for success and ERROR for failures.Deprecated.- use theCommonLoggingErrorHandlerinstead.MessageListener<K,V> Listener for handling individual incoming Kafka messages.Internal abstraction used by the framework representing a message listener container.A manager that backs off consumption for a given topic if the timestamp provided is not due.Creates aKafkaConsumerBackoffManagerinstance with or without aKafkaConsumerTimingAdjuster.RecordInterceptor<K,V> An interceptor forConsumerRecordinvoked by the listener container before and after invoking the listener.Deprecated.in favor ofDefaultErrorHandler.Called to determine whether a record should be skipped.An error handler that has access to the unprocessed records from the last poll (including the failed record) and the consumer, for example to adjust offsets after an error.Deprecated.in favor ofDefaultErrorHandler.A listener for retry activity.Deprecated.with no replacement - useDefaultErrorHandlerwith an infiniteBackOff.Deprecated.in favor ofDefaultErrorHandler.Seek utilities.A general interface for managing thread-bound resources when aConsumeris available.AKafkaExceptionthat records the timestamp of when it was thrown.Adjusts timing by creating a thread that will wakeup the consumer from polling, considering that, if consumption is paused, it will check for consumption resuming in increments of 'pollTimeout'.
CommonLoggingErrorHandlerinstead.