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 2022/03/10 23:29:40 UTC

[GitHub] [pulsar] gjanardh commented on pull request #8544: Consumer filtering

gjanardh commented on pull request #8544:
URL: https://github.com/apache/pulsar/pull/8544#issuecomment-1064619792


   @andrekramer1  Thanks for your contribution to the consumer filtering feature. We heavily use JMS brokers for messaging and trying Pulsar for few use cases now. Support for message selectors/filters (in line with the JMS Spec) will help existing JMS users switching to Pulsar. Hoping to see this feature in a future release of Pulsar!
   
   Consumer consumer = client.newConsumer(Schema.STRING)
   .topic("sometopic")
   **.selector("prop = 'value' and prop2 = val2 or (prop3 like '%val3%')") // A message selector similar to JMS Message selector SQL 92 syntax. https://docs.oracle.com/javaee/7/api/javax/jms/Message.html**
   .subscribe();


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org