camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apara <>
Subject Re: How to implement a peek ahead / skip processing in queue
Date Fri, 20 Nov 2015 17:21:19 GMT
So, the question really is:

Is there a way to control how messages are de-queued?  

In other words:

Instead of this:

1) Message is dequeued
2) Load balancer cannot be sent onto the proper destination  because it's
queue is full
3) Load balancer blocks

How can I implement:
1) Peek at the message in the queue
2) If load balancer can not send it to the proper destination because
destination's queue is full peek ahead in the queue for the message which is
not destined to this destination
3) Repeat 2 until a message if found which can be sent to some queue
4) Send the message to the proper queue

Is there an easier way to implement this?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message