pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] merlimat commented on a change in pull request #3126: [Message Routing] Set CustomPartition implicitly when messageRouter is set
Date Thu, 06 Dec 2018 20:21:49 GMT
merlimat commented on a change in pull request #3126: [Message Routing] Set CustomPartition
implicitly when messageRouter is set
URL: https://github.com/apache/pulsar/pull/3126#discussion_r239600044
 
 

 ##########
 File path: site/docs/latest/cookbooks/PartitionedTopics.md
 ##########
 @@ -91,7 +91,7 @@ String topic = "persistent://my-property/my-cluster-my-namespace/my-topic";
 
 PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
 ProducerConfiguration config = new ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
+config.setMessageRouter(new AlwaysTenRouter());
 
 Review comment:
   Don't worry about `site/` docs since these are not used anymore and are on their way of
getting removed from repo.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message