Skip to content

Multiple Incoming Channels

Experimental

Multiple @Incomings is an experimental feature.

The @Incoming annotation is repeatable. It means that the method receives the messages transiting on every listed channels, in no specific order:

1
2
3
4
5
6
@Incoming("channel-1")
@Incoming("channel-2")
public String process(String s) {
    // get messages from channel-1 and channel-2
    return s.toUpperCase();
}