Class ExecutorUtils
java.lang.Object
org.apache.bookkeeper.common.util.ExecutorUtils
Executor/Thread related utils.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadFactorygetThreadFactory(String nameFormat, boolean daemon) Get aThreadFactorysuitable for use in the current environment.
-
Constructor Details
-
ExecutorUtils
public ExecutorUtils()
-
-
Method Details
-
getThreadFactory
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.
-