Class ThreadUtils

java.lang.Object
io.confluent.security.authorizer.utils.ThreadUtils

public class ThreadUtils extends Object
Utilities for working with threads.
  • Constructor Details

    • ThreadUtils

      public ThreadUtils()
  • Method Details

    • createThreadFactory

      public static ThreadFactory createThreadFactory(String pattern, boolean daemon)
      Create a new ThreadFactory.
      Parameters:
      pattern - The pattern to use. If this contains %d, it will be replaced with a thread number. It should not contain more than one %d.
      daemon - True if we want daemon threads.
      Returns:
      The new ThreadFactory.