public class NamedThreadFactory extends Object implements ThreadFactory
Executors.defaultThreadFactory()
.
Optionally a priority or daemon flag can be provided.Constructor and Description |
---|
NamedThreadFactory(String poolName)
Creates a new named user thread factory using a normal priority.
|
NamedThreadFactory(String poolName,
int priority,
boolean daemon)
Creates a new named thread factory using explicit priority and daemon settings.
|
public NamedThreadFactory(String poolName)
poolName
- the name prefix of the thread pool which will be appended -number for the individual threadpublic NamedThreadFactory(String poolName, int priority, boolean daemon)
public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.