Package org.forgerock.util
Class Threads
java.lang.Object
org.forgerock.util.Threads
Common utility methods for Threads.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadFactory
newThreadFactory
(ThreadGroup group, String nameTemplate, boolean isDaemon) Creates a new thread factory which will create threads using the specified thread group, naming template, and daemon status.
-
Method Details
-
newThreadFactory
public static ThreadFactory newThreadFactory(ThreadGroup group, String nameTemplate, boolean isDaemon) Creates a new thread factory which will create threads using the specified thread group, naming template, and daemon status.- Parameters:
group
- The thread group, which may benull
.nameTemplate
- The thread name format string which may contain a "%d" format option which will be substituted with the thread count.isDaemon
- Indicates whether or not threads should be daemon threads.- Returns:
- The new thread factory.
-