Package org.forgerock.util
Class Threads
- java.lang.Object
-
- org.forgerock.util.Threads
-
public final class Threads extends Object
Common utility methods for Threads.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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.
-
-