Class DaemonThreadFactory
java.lang.Object
org.apache.commons.jcs3.utils.threadpool.DaemonThreadFactory
- All Implemented Interfaces:
ThreadFactory
Allows us to set the daemon status on the threads.
-
Constructor Summary
ConstructorsConstructorDescriptionDaemonThreadFactory
(String prefix) ConstructorDaemonThreadFactory
(String prefix, int threadPriority) Constructor -
Method Summary
-
Constructor Details
-
DaemonThreadFactory
Constructor- Parameters:
prefix
- thread name prefix
-
DaemonThreadFactory
Constructor- Parameters:
prefix
- thread name prefixthreadPriority
- set thread priority
-
-
Method Details
-
newThread
Sets the thread to daemon.- Specified by:
newThread
in interfaceThreadFactory
- Parameters:
runner
-- Returns:
- a daemon thread
-