public enum ThreadNameCachingStrategy extends java.lang.Enum<ThreadNameCachingStrategy>
Modifier and Type | Field and Description |
---|---|
private static StatusLogger |
LOGGER |
private static java.lang.ThreadLocal<java.lang.String> |
THREADLOCAL_NAME |
Modifier and Type | Method and Description |
---|---|
static ThreadNameCachingStrategy |
create() |
(package private) abstract java.lang.String |
getThreadName() |
static ThreadNameCachingStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreadNameCachingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadNameCachingStrategy CACHED
public static final ThreadNameCachingStrategy UNCACHED
private static final StatusLogger LOGGER
private static final java.lang.ThreadLocal<java.lang.String> THREADLOCAL_NAME
public static ThreadNameCachingStrategy[] values()
for (ThreadNameCachingStrategy c : ThreadNameCachingStrategy.values()) System.out.println(c);
public static ThreadNameCachingStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullabstract java.lang.String getThreadName()
public static ThreadNameCachingStrategy create()