You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/11/19 10:55:12 UTC

[GitHub] [pulsar] ssrkr edited a comment on issue #5678: all-messages-shared subscription mode

ssrkr edited a comment on issue #5678: all-messages-shared subscription mode
URL: https://github.com/apache/pulsar/issues/5678#issuecomment-555427353
 
 
   Could you elaborate on what you mean by subscription name? In our scenario, all consumers have to subscribe to a topic and subscription is based on a specific topic and mode, as per pulsar document. Taking client APi example from https://pulsar.apache.org/docs/v2.0.0-rc1-incubating/clients/Java/
   
   While creating let's say we use 
   
   Consumer consumer1 = client.newConsumer()
           .topic("my-topic")
           .subscriptionName("my-subscription-1")
           .ackTimeout(10, TimeUnit.SECONDS)
           .subscriptionType(SubscriptionType.Exclusive)
           .subscribe();
   
   Consumer consumer2 = client.newConsumer()
           .topic("my-topic")
           .subscriptionName("my-subscription-2")
           .ackTimeout(10, TimeUnit.SECONDS)
           .subscriptionType(SubscriptionType.Exclusive)
           .subscribe();
   
   
   Are you saying in this example both Consumer 1 and Consumer 2 will get same message? If yes, it should server our need.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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