Package io.atomix.utils.concurrent
Class Threads
- java.lang.Object
-
- io.atomix.utils.concurrent.Threads
-
public final class Threads extends Object
Thread utilities.
-
-
Constructor Summary
Constructors Constructor Description Threads()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThreadFactorynamedThreads(String pattern, org.slf4j.Logger log)Returns a thread factory that produces threads named according to the supplied name pattern.
-
-
-
Method Detail
-
namedThreads
public static ThreadFactory namedThreads(String pattern, org.slf4j.Logger log)
Returns a thread factory that produces threads named according to the supplied name pattern.- Parameters:
pattern- name pattern- Returns:
- thread factory
-
-