I used Aggregator in spring integration and saw also that there is PriorityChannel. Is there possibility to use two of these somehow to achieve following requirements:
- Messages are received from RabbitMQ and stored in spring component that has aggregator
- Aggregator is doing aggregation but at a same time it prioritizes messages for release based on some complex sorting algorithm.
- As the time passes by, message priorities inside queue can change, and we need to be able to re-schedule priorities at some point in time.