Class ExecutorUtils
- java.lang.Object
-
- org.apache.bookkeeper.common.util.ExecutorUtils
-
public class ExecutorUtils extends java.lang.ObjectExecutor/Thread related utils.
-
-
Constructor Summary
Constructors Constructor Description ExecutorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ThreadFactorygetThreadFactory(java.lang.String nameFormat, boolean daemon)Get aThreadFactorysuitable for use in the current environment.
-
-
-
Method Detail
-
getThreadFactory
public static java.util.concurrent.ThreadFactory getThreadFactory(java.lang.String nameFormat, boolean daemon)Get aThreadFactorysuitable for use in the current environment.- Parameters:
nameFormat- to apply to threads created by the factory.daemon-trueif the threads the factory creates are daemon threads,falseotherwise.- Returns:
- a
ThreadFactory.
-
-