Package org.springframework.kafka.core
Class KafkaResourceFactory
- java.lang.Object
-
- org.springframework.kafka.core.KafkaResourceFactory
-
- Direct Known Subclasses:
DefaultKafkaConsumerFactory,DefaultKafkaProducerFactory,KafkaAdmin
public abstract class KafkaResourceFactory extends java.lang.ObjectBase class for consumer/producer/admin creators.- Since:
- 2.5
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description KafkaResourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckBootstrap(java.util.Map<java.lang.String,java.lang.Object> configs)Enhance the properties by calling thesetBootstrapServersSupplier(Supplier)amd replace the bootstrap servers properties.protected java.lang.StringgetBootstrapServers()voidsetBootstrapServersSupplier(java.util.function.Supplier<java.lang.String> bootstrapServersSupplier)Set a supplier for the bootstrap server list to override any configured in a subclass.
-
-
-
Method Detail
-
getBootstrapServers
@Nullable protected java.lang.String getBootstrapServers()
-
setBootstrapServersSupplier
public void setBootstrapServersSupplier(java.util.function.Supplier<java.lang.String> bootstrapServersSupplier)
Set a supplier for the bootstrap server list to override any configured in a subclass.- Parameters:
bootstrapServersSupplier- the supplier.
-
checkBootstrap
protected void checkBootstrap(java.util.Map<java.lang.String,java.lang.Object> configs)
Enhance the properties by calling thesetBootstrapServersSupplier(Supplier)amd replace the bootstrap servers properties.- Parameters:
configs- the configs.
-
-