CorrelatingMessageHandler and Resequencer
I am having resequencer component connected to 'recipient-list-router' using direct channel. In my resequencer component I am having custom release strategy implementation of the interface:
Basing on some kind of business logic, data that are pushed into resequnecer, are being spooled (when the gap in sequence numbers was detected) or simply pushed into next component. In case when the gap is detected, method
returns false and my data are buffered. In another case it returns true and data is flushed.
public boolean canRelease(MessageGroup group)
My case is:
When my resequencer component is directly connected (using direct channel) with a filter component, everything is fine. In the code of 'CorrelatingMessageHandler' i can see (line 186), that
is returning false
...but when the resequencer is connected to 'recipient-list-router' component this method returns true and in spite of that my data is not spooled...
Why is that?