@Mutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class LDAPSDKThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactory
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Thread |
newThread(java.lang.Runnable r)
Creates a new thread using the settings for this thread factory.
|
public LDAPSDKThreadFactory(@NotNull 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(@NotNull java.lang.String baseName, boolean daemon, @Nullable 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.@NotNull public java.lang.Thread newThread(@NotNull 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
.