We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Explore the TableView API and consider adding support for it.
It may be that it is simple enough as it is and there is not much to add/enhance.
The text was updated successfully, but these errors were encountered:
One could expose a TableView as a bean as such:
TableView
@Bean TableView<User> userTableView(PulsarClient pulsarClient) { try { return pulsarClient .newTableView(Schema.AVRO(User.class)) .topic("persistent://public/default/user") .autoUpdatePartitionsInterval(10, TimeUnit.SECONDS) .create(); } catch (PulsarClientException e) { throw new RuntimeException(e); } }
A TableViewFactory like Consumer-and-Producer-Factory could be provided to facilitate in creating TableViews:
TableViewFactory
Consumer
Producer
Factory
TableViews
pulsarTableViewFactory.createTableView("persistent://public/default/user", Schema.AVRO(User.class));
The TableViewFactory could internally rely on Customizers and let them be overridden if specific Customizers are passed in the createTableView method.
Customizers
createTableView
Sorry, something went wrong.
That sounds like a good approach @jonasgeiregat
Contemplated on this a bit more and came up with another design in the line of @PulsarMessage
@PulsarMessage
@PulsarTableView(topic = "${topic.name}", ...) class CustomType { }
This would expose a pulsar TableView<CustomType> as a bean.
TableView<CustomType>
No branches or pull requests
Explore the TableView API and consider adding support for it.
It may be that it is simple enough as it is and there is not much to add/enhance.
The text was updated successfully, but these errors were encountered: