Uses of Interface
org.springframework.kafka.core.ProducerFactory
Package
Description
Package for kafka core components
Provides classes to support the use of MockConsumer and MockProducer.
Provides classes for request/reply semantics.
Provides classes related to transactions.
-
Uses of ProducerFactory in org.springframework.kafka.core
Modifier and TypeClassDescriptionclass
Modifier and TypeMethodDescriptionDefaultKafkaProducerFactory.copyWithConfigurationOverride
(Map<String, Object> overrideProperties) Copy properties of the instance and the given properties to create a new producer factory.default ProducerFactory<K,
V> ProducerFactory.copyWithConfigurationOverride
(Map<String, Object> overrideProperties) Copy the properties of the instance and the given properties to create a new producer factory.default ProducerFactory<K,
V> KafkaOperations.getProducerFactory()
Return the producer factory used by this template.KafkaTemplate.getProducerFactory()
Return the producer factory used by this template.protected ProducerFactory<K,
V> KafkaTemplate.getProducerFactory
(String topic) Return the producer factory used by this template based on the topic.RoutingKafkaTemplate.getProducerFactory()
RoutingKafkaTemplate.getProducerFactory
(String topic) Modifier and TypeMethodDescriptionstatic <K,
V> KafkaResourceHolder<K, V> ProducerFactoryUtils.getTransactionalResourceHolder
(ProducerFactory<K, V> producerFactory) Obtain a Producer that is synchronized with the current transaction, if any.static <K,
V> KafkaResourceHolder<K, V> ProducerFactoryUtils.getTransactionalResourceHolder
(ProducerFactory<K, V> producerFactory, String txIdPrefix, Duration closeTimeout) Obtain a Producer that is synchronized with the current transaction, if any.static <K,
V> KafkaResourceHolder<K, V> ProducerFactoryUtils.getTransactionalResourceHolder
(ProducerFactory<K, V> producerFactory, Duration closeTimeout) Obtain a Producer that is synchronized with the current transaction, if any.ModifierConstructorDescriptionKafkaTemplate
(ProducerFactory<K, V> producerFactory) Create an instance using the supplied producer factory and autoFlush false.KafkaTemplate
(ProducerFactory<K, V> producerFactory, boolean autoFlush) Create an instance using the supplied producer factory and autoFlush setting.KafkaTemplate
(ProducerFactory<K, V> producerFactory, boolean autoFlush, Map<String, Object> configOverrides) Create an instance using the supplied producer factory and autoFlush setting.KafkaTemplate
(ProducerFactory<K, V> producerFactory, Map<String, Object> configOverrides) Create an instance using the supplied producer factory and properties, with autoFlush false.ModifierConstructorDescriptionRoutingKafkaTemplate
(Map<Pattern, ProducerFactory<Object, Object>> factories) Construct an instance with the provided properties. -
Uses of ProducerFactory in org.springframework.kafka.mock
Modifier and TypeClassDescriptionclass
MockProducerFactory<K,
V> Support the use ofMockProducer
in tests. -
Uses of ProducerFactory in org.springframework.kafka.requestreply
ModifierConstructorDescriptionAggregatingReplyingKafkaTemplate
(ProducerFactory<K, V> producerFactory, GenericMessageListenerContainer<K, Collection<org.apache.kafka.clients.consumer.ConsumerRecord<K, R>>> replyContainer, BiPredicate<List<org.apache.kafka.clients.consumer.ConsumerRecord<K, R>>, Boolean> releaseStrategy) Construct an instance using the provided parameter arguments.ReplyingKafkaTemplate
(ProducerFactory<K, V> producerFactory, GenericMessageListenerContainer<K, R> replyContainer) ReplyingKafkaTemplate
(ProducerFactory<K, V> producerFactory, GenericMessageListenerContainer<K, R> replyContainer, boolean autoFlush) -
Uses of ProducerFactory in org.springframework.kafka.transaction
Modifier and TypeMethodDescriptionChainedKafkaTransactionManager.getProducerFactory()
Deprecated.KafkaAwareTransactionManager.getProducerFactory()
Get the producer factory.KafkaTransactionManager.getProducerFactory()
Get the producer factory.ModifierConstructorDescriptionKafkaTransactionManager
(ProducerFactory<K, V> producerFactory) Create a new KafkaTransactionManager, given a ProducerFactory.