Class ThreadHelper

java.lang.Object
org.apache.camel.util.concurrent.ThreadHelper

public final class ThreadHelper extends Object
Various helper method for thread naming.
  • Field Details

  • Method Details

    • resolveThreadName

      public static String resolveThreadName(String pattern, String name)
      Creates a new thread name with the given pattern

      See org.apache.camel.spi.ExecutorServiceManager#setThreadNamePattern(String) for supported patterns.

      Parameters:
      pattern - the pattern
      name - the name
      Returns:
      the thread name, which is unique