Shutdown Executor thread after awaitConfimation
How to shutdown all threads created with ExecutorService after the
executor.awaitTermination(1, TimeUnit.DAYS);
is finished?
That's the max time threads can work, and if, in some case, any of them
does not finish current task, shut it down and start again.
No comments:
Post a Comment