I have created a Job for Quartz Scheduler, which is in turn reading from a queue and writing into file system.
Now we have a restriction that we should keep writing until queue message count reaches 5000 or 2hrs have been passed.
For queue message count I could do this restriction in that job class itself, but how could I manage time restriction from Scheduler. I know, I can handle this restriction in actual queue reading class. But just for sake of maintainability we want to control it through Quartz Scheduler.
Any help would be appreciated.
The Best way to predict your future is to create it