org.apache.camel.util.concurrent
Class ThreadHelper

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

public final class ThreadHelper
extends Object

Various helper method for thread naming.


Field Summary
static String DEFAULT_PATTERN
           
 
Method Summary
static String resolveThreadName(String pattern, String name)
          Creates a new thread name with the given pattern

See ExecutorServiceManager.setThreadNamePattern(String) for supported patterns.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PATTERN

public static final String DEFAULT_PATTERN
See Also:
Constant Field Values
Method Detail

resolveThreadName

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

See ExecutorServiceManager.setThreadNamePattern(String) for supported patterns.

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


Apache CAMEL