Package org.jtrim2.executor
Class ThreadPoolBuilder.ThreadFactoryConfig
java.lang.Object
org.jtrim2.executor.ThreadPoolBuilder.ThreadFactoryConfig
- Enclosing class:
- ThreadPoolBuilder
Defines a configurer to create a simple
ThreadFactory instance.-
Method Summary
Modifier and TypeMethodDescriptionvoidsetDaemon(boolean daemon) Sets and overwrites previously set value to mark new threads daemon or not.
-
Method Details
-
setDaemon
public void setDaemon(boolean daemon) Sets and overwrites previously set value to mark new threads daemon or not.The default value for this property is
false.- Parameters:
daemon-trueif the newly created threads must be daemon threads,falseotherwise
-