static class RrdSyncThreadPool.DaemonThreadFactory extends Object implements ThreadFactory
This factory creates all new threads used by an Executor in the same ThreadGroup. If there is a SecurityManager, it uses the group of System.getSecurityManager(), else the group of the thread instantiating this DaemonThreadFactory. Each new thread is created as a daemon thread with priority Thread.NORM_PRIORITY. New threads have names accessible via Thread.getName() of "<pool-name> Pool [Thread-M]", where M is the sequence number of the thread created by this factory.
| Modifier and Type | Field and Description |
|---|---|
(package private) ThreadGroup | groupThread group |
(package private) String | poolNamePool name |
(package private) AtomicInteger | threadNumberThread number |
| Constructor and Description |
|---|
DaemonThreadFactory(String poolName) |
final ThreadGroup group
final String poolName
final AtomicInteger threadNumber
DaemonThreadFactory(String poolName)
public Thread newThread(Runnable r)
newThread in interface ThreadFactory