Ruckus
11/28/2016, 9:45 PMRuckus
11/28/2016, 9:46 PMedvin
11/28/2016, 9:53 PMThreadFactory
as the second parameter to newFixedThreadPool
and call thread.t.setDaemon(true)
on each thread after you create them, then it will shut down nicely even if there are threads in the pool when you shut down.edvin
11/28/2016, 9:59 PMedvin
11/28/2016, 10:03 PMsuper.stop()
after to call pool.awaitTermination
and you're golden 🙂Ruckus
11/28/2016, 10:06 PMthomasnield
11/29/2016, 2:41 AMwhile(true)
loop to keep an application alive.thomasnield
11/29/2016, 2:41 AMthomasnield
11/29/2016, 2:42 AMCountDownLatch
or other Semaphore-like synchronizers?thomasnield
11/29/2016, 2:42 AMthomasnield
11/29/2016, 2:43 AMRuckus
11/29/2016, 5:20 AMcarlw
11/29/2016, 3:03 PMedvin
11/29/2016, 3:14 PMcarlw
11/29/2016, 3:58 PMRuckus
11/29/2016, 4:04 PMcarlw
11/29/2016, 4:09 PMcarlw
11/29/2016, 4:09 PMRuckus
11/29/2016, 4:16 PMRuckus
11/29/2016, 4:17 PMRuckus
11/29/2016, 4:19 PMcarlw
11/29/2016, 4:38 PMRuckus
11/29/2016, 4:46 PMedvin
11/29/2016, 7:05 PMthomasnield
11/30/2016, 3:00 AMthomasnield
11/30/2016, 3:08 AMthomasnield
11/30/2016, 3:10 AMthomasnield
11/30/2016, 3:17 AMelezium
11/30/2016, 4:50 AM