Class KafkaProperties.Producer
java.lang.Object
org.springframework.boot.kafka.autoconfigure.KafkaProperties.Producer
- Enclosing class:
KafkaProperties
- Since:
- 4.0.0
- Author:
- Gary Russell, Stephane Nicoll, Artem Bilan, Nakul Mishra, Tomaz Fernandes, Andy Wilkinson, Scott Frederick, Yanming Zhou, Nikita Kibitkin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.getAcks()Class<?> getSsl()Class<?> voidvoidsetBatchSize(@Nullable DataSize batchSize) voidsetBootstrapServers(@Nullable List<String> bootstrapServers) voidsetBufferMemory(@Nullable DataSize bufferMemory) voidsetClientId(@Nullable String clientId) voidsetCompressionType(@Nullable String compressionType) voidsetKeySerializer(Class<?> keySerializer) voidsetRetries(@Nullable Integer retries) voidsetTransactionIdPrefix(@Nullable String transactionIdPrefix) voidsetValueSerializer(Class<?> valueSerializer)
-
Constructor Details
-
Producer
public Producer()
-
-
Method Details
-
getSsl
-
getSecurity
-
getAcks
-
setAcks
-
getBatchSize
-
setBatchSize
-
getBootstrapServers
-
setBootstrapServers
-
getBufferMemory
-
setBufferMemory
-
getClientId
-
setClientId
-
getCompressionType
-
setCompressionType
-
getKeySerializer
-
setKeySerializer
-
getValueSerializer
-
setValueSerializer
-
getRetries
-
setRetries
-
getTransactionIdPrefix
-
setTransactionIdPrefix
-
getProperties
-
buildProperties
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofKafkaConfigBuilderBuild the relevant producer properties.- Returns:
- the producer properties initialized with the customizations defined on this instance
-
KafkaConfigBuilder