List of usage examples for org.springframework.integration.channel AbstractPollableChannel subclass-usage
From source file com.googlecode.msidor.springframework.integration.channel.ConcurentOrderedMultiQueueChannel.java
/**
* Sometimes in multithreading environment it is important that a set of data should not be handled in parallel by several threads at once.
* This custom implementation of {@link AbstractPollableChannel} allows to lock the set of messages to be processed only by one thread at the same time where the locking is based on message's header attribute.<br/>
* This channel implements as well the load balancing: incoming messages are dispatched into queues based on header attribute and are send to next component by round-robin load balancing.<br/>
* To better support the multithreading (and avoid threads starvations and livelocks) this channel blocks the consuming threads if there are no eligible messages to handle.
*