Replies: 1 comment 1 reply
-
Your method signature is not correct:
should fix it. See https://smallrye.io/smallrye-reactive-messaging/4.18.0/concepts/signatures/ for details. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings,
I'm getting started with smallrye-reactive-messaging and encountered one annoyance that I think should not be present.
I want to create a "terminal" consumer of
Multi<T>
- so I can batch-consume multiple payloads from my channel.To achieve that I try to write the simplest code possible:
But this doesn't work and errors for me with the following message:
So instead I found on the Stack Overflow the following answer: https://stackoverflow.com/questions/70925787/reactive-messaging-classcastexception-cannot-be-cast-to-class-io-smallrye-muti and adapted my code accordingly. This works, but this is ugly. Why I have to resort to creating a new channel when I want to consume
Multi<T>
?Beta Was this translation helpful? Give feedback.
All reactions