I am using Executor framework, and running say 3 task in different threads simeltaneoulsly. But right now there is no way to say those 3 threads run task from different job and not from same job. What I want is some kind of framework, where I can put these task in different buckets based on their job. And when thread activate and run the task it should pick task from different job bucket maybe in round-robin fashion.
Each Job having no interdependency with each other. For some job, it is nacessary to run only 1 task at a time. One important things, the task are added to thread pool at runtime.