Package org.apache.camel.util.concurrent
Class ThreadHelper
- java.lang.Object
-
- org.apache.camel.util.concurrent.ThreadHelper
-
public final class ThreadHelper extends Object
Various helper method for thread naming.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PATTERN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
resolveThreadName(String pattern, String name)
Creates a new thread name with the given pattern
-
-
-
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 Seeorg.apache.camel.spi.ExecutorServiceManager#setThreadNamePattern(String)
for supported patterns.- Parameters:
pattern
- the patternname
- the name- Returns:
- the thread name, which is unique
-
-