Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for regex subscriptions #7

Closed
gmethvin opened this issue Oct 11, 2018 · 3 comments
Closed

Support for regex subscriptions #7

gmethvin opened this issue Oct 11, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@gmethvin
Copy link
Collaborator

gmethvin commented Oct 11, 2018

The Java client allows you to subscribe to multiple topics using a pattern like

Pattern allTopicsInNamespace = Pattern.compile("persistent://public/default/.*");
Consumer allTopicsConsumer = consumerBuilder.topicsPattern(allTopicsInNamespace).subscribe();

It should be possible to provide a Scala interface to achieve this using a Regex for the pattern.

@sksamuel sksamuel added the enhancement New feature or request label Oct 11, 2018
@sksamuel
Copy link
Contributor

Quite right, that's quite an omission actually.

@sksamuel sksamuel self-assigned this Oct 11, 2018
sksamuel added a commit that referenced this issue Oct 11, 2018
@sksamuel
Copy link
Contributor

I've added support for this but cannot get the tests to pass currently. Baffling.

@sksamuel
Copy link
Contributor

Tests sorted. 2.1.2 released with topic patterns support. Slight tweak to the order of params in the consumer.

gmethvin added a commit to gmethvin/pulsar4s that referenced this issue Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants