Package org.pgcodekeeper.core.utils
Class DaemonThreadFactory
java.lang.Object
org.pgcodekeeper.core.utils.DaemonThreadFactory
- All Implemented Interfaces:
ThreadFactory
For thread pools that shouldn't prevent normal program shutdown.
- Author:
- levsha_aa
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DaemonThreadFactory
public DaemonThreadFactory()
-
-
Method Details
-
newThread
Creates a new daemon thread to run the given task.- Specified by:
newThreadin interfaceThreadFactory- Parameters:
r- the runnable task to be executed by the new thread- Returns:
- a new daemon thread configured to run the given task
-