@NonNullApi
Package org.springframework.kafka.core
Package for kafka core components
-
Interface Summary Interface Description ConsumerFactory<K,V> The strategy to produce aConsumer
instance(s).ConsumerFactory.Listener<K,V> Called whenever a consumer is added or removed.ConsumerPostProcessor<K,V> Called by consumer factories to perform post processing on newly created consumers.KafkaAdminOperations Provides a number of convenience methods wrappingAdminClient
.KafkaFailureCallback<K,V> Deprecated. as of 2.9.1, in favor ofCompletableFuture.whenComplete(BiConsumer)
KafkaOperations<K,V> The basic Kafka operations contract returningListenableFuture
s.KafkaOperations.OperationsCallback<K,V,T> A callback for executing arbitrary operations on theKafkaOperations
.KafkaOperations.ProducerCallback<K,V,T> A callback for executing arbitrary operations on theProducer
.KafkaOperations2<K,V> The basic Kafka operations contract returningCompletableFuture
s.KafkaSendCallback<K,V> Deprecated. as of 2.9.1, in favor ofCompletableFuture.whenComplete(BiConsumer)
ProducerFactory<K,V> The strategy to produce aProducer
instance(s).ProducerFactory.Listener<K,V> Called whenever a producer is added or removed.ProducerPostProcessor<K,V> Called by producer factories to perform post processing on newly created producers. -
Class Summary Class Description ABSwitchCluster ASupplier
for bootstrap servers that can toggle between 2 lists of servers.CleanupConfig Specifies time ofKafkaStreams.cleanUp()
execution.DefaultKafkaConsumerFactory<K,V> TheConsumerFactory
implementation to produce newConsumer
instances for providedMap
configs
and optionalDeserializer
s on eachConsumerFactory.createConsumer()
invocation.DefaultKafkaProducerFactory<K,V> DefaultKafkaProducerFactory.CloseSafeProducer<K,V> A wrapper class for the delegate.KafkaAdmin An admin that delegates to anAdminClient
to create topics defined in the application context.KafkaAdmin.NewTopics Wrapper for a collection ofNewTopic
to facilitate declaring multiple topics as a single bean.KafkaResourceFactory Base class for consumer/producer/admin creators.KafkaResourceHolder<K,V> Kafka resource holder, wrapping a Kafka producer.KafkaTemplate<K,V> A template for executing high-level operations.MicrometerConsumerListener<K,V> A consumer factory listener that managesKafkaClientMetrics
.MicrometerProducerListener<K,V> A producer factory listener that managesKafkaClientMetrics
.ProducerFactoryUtils Helper class for managing a Spring based KafkaDefaultKafkaProducerFactory
in particular for obtaining transactional Kafka resources for a given ProducerFactory.RoutingKafkaTemplate AKafkaTemplate
that routes messages based on the topic name. -
Exception Summary Exception Description KafkaProducerException Exceptions when producing.