Class PulsarTopicBuilder

java.lang.Object
org.springframework.pulsar.core.PulsarTopicBuilder

public class PulsarTopicBuilder extends Object
Builder class to create PulsarTopic instances.
Author:
Alexander Preuß
  • Constructor Details

    • PulsarTopicBuilder

      protected PulsarTopicBuilder(String topicName)
  • Method Details

    • numberOfPartitions

      public PulsarTopicBuilder numberOfPartitions(int numberOfPartitions)
      Sets the number of topic partitions.
      Parameters:
      numberOfPartitions - the number of topic partitions
      Returns:
      this builder
    • build

      public PulsarTopic build()
      Constructs the PulsarTopic with the properties configured in this builder.
      Returns:
      PulsarTopic