| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocalNDC. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public String | get(int
the index n)Implements org. Provided for compatibility with log4j. |
| public int | |
| public String | pop()
Implements org. Pop the topmost value from the NDC stack and return it. |
| public int | push(String
the new value context)Implements org. Push a value on to the NDC stack, returning the new stack depth which should later be used to restore the stack. |
| public void | trimTo(int
the new size size)Implements org. Trim the thread NDC stack down to no larger than the given size. |
| ndc | back to summary |
|---|---|
| private static final ThreadLocalNDC. | |
| ThreadLocalNDC | back to summary |
|---|---|
| pack-priv ThreadLocalNDC() | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Clear the thread's NDC stack.
| |
| get | back to summary |
|---|---|
| public String get() Implements org. Doc from org. Get the current NDC value. | |
| get | back to summary |
|---|---|
| public String get(int n) Implements org. Doc from org. Provided for compatibility with log4j. Get the NDC value that is | |
| getDepth | back to summary |
|---|---|
| public int getDepth() Implements org. Doc from org. Get the current NDC stack depth.
| |
| pop | back to summary |
|---|---|
| public String pop() Implements org. Doc from org. Pop the topmost value from the NDC stack and return it. | |
| push | back to summary |
|---|---|
| public int push(String context) Implements org. Doc from org. Push a value on to the NDC stack, returning the new stack depth which should later be used to restore the stack. | |
| trimTo | back to summary |
|---|---|
| public void trimTo(int size) Implements org. Doc from org. Trim the thread NDC stack down to no larger than the given size. Used to restore the stack to the depth returned
by a
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected ThreadLocalNDC. | initialValue()
Overrides java. Returns the current thread's "initial value" for this thread-local variable. |
| Holder | back to summary |
|---|---|
| private Holder() | |
| initialValue | back to summary |
|---|---|
| protected ThreadLocalNDC. Overrides java. Doc from java. Returns the current thread's "initial value" for this
thread-local variable. This method will be invoked the first
time a thread accesses the variable with the
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public T | |
| public boolean | |
| public T | |
| public void | |
| public T | |
| public String | |
| public void |
| Stack | back to summary |
|---|---|
| private Stack() | |
| depth | back to summary |
|---|---|
| public int depth() | |
| get | back to summary |
|---|---|
public T get(int n)
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| pop | back to summary |
|---|---|
public T pop()
| |
| push | back to summary |
|---|---|
| public void push(T value) | |
| top | back to summary |
|---|---|
public T top()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| trimTo | back to summary |
|---|---|
| public void trimTo(int max) | |