public class DaemonThreadFactory extends Object implements ThreadFactory
Constructor and Description |
---|
DaemonThreadFactory()
Creates a new factory which will supply daemon threads having
normal priority.
|
DaemonThreadFactory(int priority)
Creates a new factory which will supply daemon threads to run
at the specified priority.
|
DaemonThreadFactory(int priority,
String rootName)
Creates a new factory which will supply daemon threads to run
at the specified priority.
|
Modifier and Type | Method and Description |
---|---|
Thread |
newThread(Runnable r)
Creates a new daemon thread with name and priority assigned
as per the values supplied when creating this thread factory.
|
public DaemonThreadFactory()
public DaemonThreadFactory(int priority)
priority
- thread prioritypublic DaemonThreadFactory(int priority, String rootName)
rootName-n
where n
is the count of threads produced by all instances
of this class.priority
- thread priorityrootName
- root name to label threadspublic Thread newThread(Runnable r)
newThread
in interface ThreadFactory
r
- target for the new threadCopyright © 2006–2018 GeoSolutions. All rights reserved.