Multiple Incoming Channels
Experimental
Multiple `@Incoming`s 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:
@Incoming("channel-1")
@Incoming("channel-2")
public String process(String s) {
// get messages from channel-1 and channel-2
return s.toUpperCase();
}