| Modifier and Type | Field and Description |
|---|---|
| private final InheritableThreadLocal | |
| private final ThreadLocalMapOfStacks |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | clearDequeByKey(String key)
Implements org. Clear the deque(stack) referenced by 'key'. |
| public String | get(String key)
Implements org. Get the context identified by the |
| public Map | getCopyOfContextMap()
Implements org. Return a copy of the current thread's context map. |
| public Deque | getCopyOfDequeByKey(String key)
Implements org. Returns a copy of the deque(stack) referenced by 'key'. |
| public Set | |
| public String | popByKey(String key)
Implements org. Pop the stack referenced by 'key' and return the value possibly null. |
| public void | pushByKey(String key, String value)
Implements org. Push a value into the deque(stack) referenced by 'key'. |
| public void | put(String key, String val)
Implements org. Put a context value (the |
| public void | remove(String key)
Implements org. Remove the context identified by the |
| public void | setContextMap(Map<String, String> contextMap)
Implements org. Set the current thread's context map by first clearing any existing map and then copying the map passed as parameter. |
| inheritableThreadLocalMap | back to summary |
|---|---|
| private final InheritableThreadLocal<Map<String, String>> inheritableThreadLocalMap | |
| threadLocalMapOfDeques | back to summary |
|---|---|
| private final ThreadLocalMapOfStacks threadLocalMapOfDeques | |
| BasicMDCAdapter | back to summary |
|---|---|
| public BasicMDCAdapter() | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Clear all entries in the MDC. | |
| clearDequeByKey | back to summary |
|---|---|
| public void clearDequeByKey(String key) Implements org. Doc from org. Clear the deque(stack) referenced by 'key'.
| |
| get | back to summary |
|---|---|
| public String get(String key) Implements org. Get the context identified by the | |
| getCopyOfContextMap | back to summary |
|---|---|
| public Map Implements org. Return a copy of the current thread's context map. Returned value may be null. | |
| getCopyOfDequeByKey | back to summary |
|---|---|
| public Deque Implements org. Doc from org. Returns a copy of the deque(stack) referenced by 'key'. May be null.
| |
| getKeys | back to summary |
|---|---|
| public Set Returns the keys in the MDC as a | |
| popByKey | back to summary |
|---|---|
| public String popByKey(String key) Implements org. Doc from org. Pop the stack referenced by 'key' and return the value possibly null.
| |
| pushByKey | back to summary |
|---|---|
| public void pushByKey(String key, String value) Implements org. Doc from org. Push a value into the deque(stack) referenced by 'key'.
| |
| put | back to summary |
|---|---|
| public void put(String key, String val) Implements org. Put a context value (the If the current thread does not have a context map it is created as a side effect of this call.
| |
| remove | back to summary |
|---|---|
| public void remove(String key) Implements org. Remove the context identified by the | |
| setContextMap | back to summary |
|---|---|
| public void setContextMap(Map<String, String> contextMap) Implements org. Doc from org. Set the current thread's context map by first clearing any existing map and then copying the map passed as parameter. The context map parameter must only contain keys and values of type String. Implementations must support null valued map passed as parameter. | |