Skip to content

Correlation id with Emitter #2130

Closed Answered by marko-lazic
marko-lazic asked this question in Q&A
Discussion options

You must be logged in to vote

I solved it by just setting the emitter generic to String.

@Channel("foo.created")
Emitter<String> emitter;

And the rest of the code is the same. The emitter.send(message) now uses <M extends Message<? extends T>> void send(M msg);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marko-lazic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant