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.Object
Base class for consumer/producer/admin creators.- Since:
- 2.5
-
-
Constructor Summary
Constructors Constructor Description KafkaResourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkBootstrap(java.util.Map<java.lang.String,java.lang.Object> configs)
Enhance the properties by calling thesetBootstrapServersSupplier(Supplier)
and replace the bootstrap servers properties.protected java.lang.String
getBootstrapServers()
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.
-
-
-
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)
and replace the bootstrap servers properties.- Parameters:
configs
- the configs.
-
-