A thread factory that creates threads (possibly daemon threads) using the name and naming policy supplied. The thread counter starts at 1, increments atomically, and is supplied as the second argument in the format string. A static method, {@link #singleThreadExecutor(String,boolean)}, exists to simplify the construction of an executor with a single well-named threads. Example
ExecutorService exec = ServiceThreadFactory.newSingleThreadExecutor("live", true)