Start a route based on a specific time everyday , but stop logic is based on ...
I want to schedule a quartz cron job which is supposed to run at a
specific time every day but be stopped only if the queue from where it is
consuming is empty o.e. all messages are consumed. I saw the examples of
org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicy , but its
requires a start & end time. But I am not sure of the end time , it based
on the no of messages in queue and I can't predict a proper window.