reactive messaging

13 views
Skip to first unread message

Vincenzo D'Amore

unread,
Jul 11, 2023, 12:56:53 PM7/11/23
to SmallRye
Hi all,

Can I have a method with two @Outgoing annotation used alternatively

Something like:

@Outgoing("error")
@Outgoing("success")

Or should I have two emitters for each case like:

    @Inject @Channel("error")
    Emitter<ClassA> emitterError;
    @Inject @Channel("success")
    Emitter<ClassA> emitterSuccess;

Best,
Vincenzo

clement escoffier

unread,
Jul 11, 2023, 1:20:57 PM7/11/23
to smal...@googlegroups.com
Hello,

That’s an almost perfectly timed question. Ozan and Julien are implementing this right now. It should be delivered soonish(tm).

For the time being, use two emitters.

Clement

--
You received this message because you are subscribed to the Google Groups "SmallRye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smallrye+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smallrye/ae3ffd2d-2ca2-4ed7-8fe6-e8f076b60a3fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages