| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public String | |
| public Map | Returns: A copy of the current thread's context map. May be null.Return a copy of the current thread's context map, with keys and values of type String. |
| public Deque | Returns: copy of stack referenced by 'key'. May be null.identifies the stack key)Returns a copy of the deque(stack) referenced by 'key'. |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | setContextMap(Map<String, String>
must contain only keys and values of type String contextMap)Set the current thread's context map by first clearing any existing map and then copying the map passed as parameter. |
| clear | back to summary |
|---|---|
| public void clear() Clear all entries in the MDC. | |
| clearDequeByKey | back to summary |
|---|---|
| public void clearDequeByKey(String key) Clear the deque(stack) referenced by 'key'.
| |
| get | back to summary |
|---|---|
| public String get(String key) Get the context identified by the
| |
| getCopyOfContextMap | back to summary |
|---|---|
| public Map Return a copy of the current thread's context map, with keys and values of type String. Returned value may be null. | |
| getCopyOfDequeByKey | back to summary |
|---|---|
| public Deque Returns a copy of the deque(stack) referenced by 'key'. May be null. | |
| popByKey | back to summary |
|---|---|
| public String popByKey(String key) Pop the stack referenced by 'key' and return the value possibly null. | |
| pushByKey | back to summary |
|---|---|
| public void pushByKey(String key, String value) Push a value into the deque(stack) referenced by 'key'. | |
| put | back to summary |
|---|---|
| public void put(String key, String val) 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) Remove the context identified by the
This method does nothing if there is no previous value
associated with | |
| setContextMap | back to summary |
|---|---|
| public void setContextMap(Map<String, String> contextMap) 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. | |