public class ThreadContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.ThreadLocal<ThreadContext> |
currentThreadContext
The thread-specific ThreadContext.
|
java.lang.StringBuffer |
excMsg
String Buffer to store a thread local exception message for throw operations.
|
Constructor and Description |
---|
ThreadContext() |
Modifier and Type | Method and Description |
---|---|
static ThreadContext |
getCurrent() |
private static java.lang.ThreadLocal<ThreadContext> currentThreadContext
public java.lang.StringBuffer excMsg
ThreadContext threadContext = ThreadContext.getCurrent(); threadContext->excMsg.setLength(0); threadContext->excMsg.append("The message text"); throw new RuntimeException(threadContext->excMsg);
public static ThreadContext getCurrent()