Search code examples
javaspringspring-integration

Spring Integration - channels and threads


I would like to understand how messages are processed in Spring Integration: serial or parallel. In particular I have an inbound channel adapter with a poller and an HTTP outbound gateway. I guess splitters, transformers, header enrichers etc are not spawning their own threads.

I could have missed them, but are these details specified somewhere in the documentation?

Also can I programatically get all the channels in the system?


Solution

  • Channel types are described here.

    The default channel type is Direct (the endpoint runs on the caller's thread); QueueChannel and ExcecutorChannel provide for asynch operations.

    context.getBeansOfType(MessageChannel.class)