I have four different processes (diferent methods) that run separately and are scheduled to start in diferent times. This proccesses can also be started manually, and have to run one at the time. Is there any queue implementation that handle this kind of concurrency? Im trying to avoid the same process being in the queue twice, or two proccesses running at the same time.
I have four different processes (diferent methods) that run separately and are scheduled to
Share
It seems you’re looking for Executors.newSingleThreadScheduledExecutor():