public final class IoThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
ThreadFactory
to create IO Thread
s.Constructor and Description |
---|
IoThreadFactory(java.lang.String threadNamePrefix)
Create a new instance.
|
IoThreadFactory(java.lang.String threadNamePrefix,
boolean daemon)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Thread |
newThread(java.lang.Runnable r) |
public IoThreadFactory(java.lang.String threadNamePrefix)
threadNamePrefix
- the name prefix used for the created Thread
s.public IoThreadFactory(java.lang.String threadNamePrefix, boolean daemon)
threadNamePrefix
- the name prefix used for the created Thread
s.daemon
- true
if the created Thread
should be a daemon thread.