Class RoutingPublisherBuilder.Builder (1.12.22)

public abstract static class RoutingPublisherBuilder.Builder

Inheritance

java.lang.Object > RoutingPublisherBuilder.Builder

Constructors

Builder()

public Builder()

Methods

build()

public Publisher<MessageMetadata> build()
Returns
TypeDescription
Publisher<MessageMetadata>
Exceptions
TypeDescription
ApiException

setNumPartitions(Integer numPartitions)

public abstract RoutingPublisherBuilder.Builder setNumPartitions(Integer numPartitions)
Parameter
NameDescription
numPartitionsInteger
Returns
TypeDescription
RoutingPublisherBuilder.Builder

setPublisherFactory(PartitionPublisherFactory factory)

public abstract RoutingPublisherBuilder.Builder setPublisherFactory(PartitionPublisherFactory factory)
Parameter
NameDescription
factoryPartitionPublisherFactory
Returns
TypeDescription
RoutingPublisherBuilder.Builder

setTopic(TopicPath path)

public abstract RoutingPublisherBuilder.Builder setTopic(TopicPath path)
Parameter
NameDescription
pathTopicPath
Returns
TypeDescription
RoutingPublisherBuilder.Builder