Class Database.DaemonThreadFactory
java.lang.Object
de.murmelmeister.library.database.Database.DaemonThreadFactory
- All Implemented Interfaces:
ThreadFactory
- Enclosing class:
Database
Thread factory that marks created threads as daemon threads and assigns a readable name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
namePrefix
-
counter
-
-
Constructor Details
-
DaemonThreadFactory
-
-
Method Details
-
newThread
Creates a new daemon thread to run the supplied task.- Specified by:
newThreadin interfaceThreadFactory- Parameters:
runnable- The task that the thread should execute- Returns:
- A configured daemon thread
-