Package org.springframework.pulsar.core
Class PulsarTopicBuilder
java.lang.Object
org.springframework.pulsar.core.PulsarTopicBuilder
Builder class to create
PulsarTopic
instances.- Author:
- Alexander Preuß
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs thePulsarTopic
with the properties configured in this builder.numberOfPartitions
(int numberOfPartitions) Sets the number of topic partitions.
-
Constructor Details
-
PulsarTopicBuilder
-
-
Method Details
-
numberOfPartitions
Sets the number of topic partitions.- Parameters:
numberOfPartitions
- the number of topic partitions- Returns:
- this builder
-
build
Constructs thePulsarTopic
with the properties configured in this builder.- Returns:
PulsarTopic
-