|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.util.LDAPSDKThreadFactory
public final class LDAPSDKThreadFactory
This class provides a thread factory implementation that may be used to create threads with a number of basic settings. The name of each thread will be followed by a counter indicating the order in which the thread was created.
Constructor Summary | |
---|---|
LDAPSDKThreadFactory(java.lang.String baseName,
boolean daemon)
Creates a new instance of this thread factory with the provided settings. |
|
LDAPSDKThreadFactory(java.lang.String baseName,
boolean daemon,
java.lang.ThreadGroup threadGroup)
Creates a new instance of this thread factory with the provided settings. |
Method Summary | |
---|---|
java.lang.Thread |
newThread(java.lang.Runnable r)
Creates a new thread using the settings for this thread factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPSDKThreadFactory(java.lang.String baseName, boolean daemon)
baseName
- The base name to use for threads created by this factory.daemon
- Indicates whether the threads should be created as daemon
threads.public LDAPSDKThreadFactory(java.lang.String baseName, boolean daemon, java.lang.ThreadGroup threadGroup)
baseName
- The base name to use for threads created by this
factory. It must not be null
.daemon
- Indicates whether the threads should be created as
daemon threads.threadGroup
- The thread group to use for threads created by this
factory. It may be null
if the default thread
group should be used.Method Detail |
---|
public java.lang.Thread newThread(java.lang.Runnable r)
newThread
in interface java.util.concurrent.ThreadFactory
r
- The Runnable
target that will be used for the actual
thread logic. It must not be null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |