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

Specific AVRO Producer / Callback #6

Open
PHameete opened this issue Apr 12, 2018 · 0 comments
Open

Specific AVRO Producer / Callback #6

PHameete opened this issue Apr 12, 2018 · 0 comments
Assignees

Comments

@PHameete
Copy link
Contributor

Currently, the Java Adapter only provides GenericProducers that accept IndexedRecords (most generic AVRO class). For IAdapterCallback interface implementations this holds as well: only IndexRecords are pushed to the callback implementations.

This means that the AVRO objects always need to be casted upon receiving, and that incorrect AVRO objects (that dont correspond to the used schema) can be provided to the producers.

It would be valuable / safe to also have a specific callback interface: that already casts the received records to the correct class. And a specific producer, that only accepts AVRO classes of the corresponding topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants