Class ExecutorUtils

java.lang.Object
org.apache.bookkeeper.common.util.ExecutorUtils

public class ExecutorUtils extends Object
Executor/Thread related utils.
  • Constructor Details

    • ExecutorUtils

      public ExecutorUtils()
  • Method Details

    • getThreadFactory

      public static ThreadFactory getThreadFactory(String nameFormat, boolean daemon)
      Get a ThreadFactory 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.