java - Concurrency processing in spring integration -


i reading this article running spring integration cafe sample code. below program flow.

program flow

i curious if first batch of order comes in 100 drinks, , @ time 50th drink processing in drink router, second batch of order comes in 200 drinks, application know block second batch of order before process first batch of order?

i haven't used spring integration in few years, think whether application blocks order#2 until order#1 complete based on type of channels use. think default block because example doesn't specify channel type (thus using directchannel). use of different type of channel allow drinkorders processed in non-blocking way.

from http://docs.spring.io/spring-integration/reference/html/messaging-channels-section.html

in addition being simplest point-to-point channel option, 1 of important features enables single thread perform operations on "both sides" of channel. example, if handler subscribed directchannel, sending message channel trigger invocation of handler's handlemessage(message) method directly in sender's thread, before send() method invocation can return.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -