Package org.opends.server.api
Class DirectoryThread.Factory
- java.lang.Object
-
- org.opends.server.api.DirectoryThread.Factory
-
- All Implemented Interfaces:
ThreadFactory
- Enclosing class:
- DirectoryThread
public static final class DirectoryThread.Factory extends Object implements ThreadFactory
A factory which can be used by thread pool based services such asExecutors to dynamically create newDirectoryThreadinstances.
-
-
Constructor Detail
-
Factory
public Factory(String threadNamePrefix)
Creates a new directory thread factory using the provided thread name prefix.- Parameters:
threadNamePrefix- The name prefix used for all threads created using this factory.
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThreadin interfaceThreadFactory
-
-