@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.KafkaFailureCallback<K,V> An enhancedFailureCallback
for reportingKafkaProducerException
s.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
.KafkaSendCallback<K,V> An enhancedListenableFutureCallback
for reportingKafkaProducerException
s.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.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.