Class ExecutorUtils
- java.lang.Object
-
- org.apache.bookkeeper.common.util.ExecutorUtils
-
public class ExecutorUtils extends java.lang.Object
Executor/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.ThreadFactory
getThreadFactory(java.lang.String nameFormat, boolean daemon)
Get aThreadFactory
suitable for use in the current environment.
-
-
-
Method Detail
-
getThreadFactory
public static java.util.concurrent.ThreadFactory getThreadFactory(java.lang.String nameFormat, boolean daemon)
Get aThreadFactory
suitable for use in the current environment.- Parameters:
nameFormat
- to apply to threads created by the factory.daemon
-true
if the threads the factory creates are daemon threads,false
otherwise.- Returns:
- a
ThreadFactory
.
-
-