You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have opened #1559 for this. It adds the PulsarTableViewFactory discussed above, in the shape of the PulsarReaderFactory: DefaultPulsarTableViewFactory applies the TableViewBuilderCustomizers of its default configuration, then the topic (qualified with the PulsarTopicBuilder when one is set) and the customizers of the call, and wraps a PulsarClientException in a PulsarException. I left the @PulsarTableView annotation out, since the factory is the piece the rest builds on. If it goes in, I can follow up in Spring Boot with the factory bean and spring.pulsar.table-view.* defaults.
Activity
jonas-grgt commentedon Feb 7, 2024
One could expose a
TableViewas a bean as such:A
TableViewFactorylikeConsumer-and-Producer-Factorycould be provided to facilitate in creatingTableViews:The
TableViewFactorycould internally rely onCustomizersand let them be overridden if specificCustomizersare passed in thecreateTableViewmethod.onobc commentedon Feb 7, 2024
That sounds like a good approach @jonasgeiregat
jonas-grgt commentedon Feb 11, 2024
Contemplated on this a bit more and came up with another design in the line of
@PulsarMessageThis would expose a pulsar
TableView<CustomType>as a bean.sharanggupta commentedon Oct 15, 2026
I have opened #1559 for this. It adds the
PulsarTableViewFactorydiscussed above, in the shape of thePulsarReaderFactory:DefaultPulsarTableViewFactoryapplies theTableViewBuilderCustomizers of its default configuration, then the topic (qualified with thePulsarTopicBuilderwhen one is set) and the customizers of the call, and wraps aPulsarClientExceptionin aPulsarException. I left the@PulsarTableViewannotation out, since the factory is the piece the rest builds on. If it goes in, I can follow up in Spring Boot with the factory bean andspring.pulsar.table-view.*defaults.