Need 2 schedulers where 1 scheduler has 1 thread in the SchedulerThreadExecutorPool and schedules/looks for work every 5 mins. The second scheduler is part of look for work method, where once there is work, another scheduler is created with 10 threads in the ScheduledThreadExecutorPool where each thread processes files in a directory (list of directories are present). Need help designing the system. This thread is started at application startup and shutdowns at application shut down.