| Package | Description |
|---|---|
| org.apache.pulsar.client.api | |
| org.apache.pulsar.client.impl |
| Modifier and Type | Method and Description |
|---|---|
MessageRouter |
ProducerConfiguration.getMessageRouter()
Deprecated.
Get the message router set by
ProducerConfiguration.setMessageRouter(MessageRouter). |
MessageRouter |
ProducerConfiguration.getMessageRouter(int numPartitions)
Deprecated.
since 1.22.0-incubating. numPartitions is already passed as parameter in
choosePartition(Message, TopicMetadata). |
| Modifier and Type | Method and Description |
|---|---|
ProducerBuilder<T> |
ProducerBuilder.messageRouter(MessageRouter messageRouter)
Set a custom message routing policy by passing an implementation of MessageRouter
|
ProducerConfiguration |
ProducerConfiguration.setMessageRouter(MessageRouter messageRouter)
Deprecated.
Set a custom message routing policy by passing an implementation of MessageRouter
|
| Modifier and Type | Class and Description |
|---|---|
class |
MessageRouterBase |
class |
RoundRobinPartitionMessageRouterImpl
The routing strategy here:
If a key is present, choose a partition based on a hash of the key.
|
class |
SinglePartitionMessageRouterImpl |
| Modifier and Type | Method and Description |
|---|---|
ProducerBuilder<T> |
ProducerBuilderImpl.messageRouter(MessageRouter messageRouter) |
Copyright © 2017–2018 Apache Software Foundation. All rights reserved.