Modifier and Type | Method and Description |
---|---|
void |
clearMDC()
Clear all entries in the MDC of the underlying implementation.
|
String |
getMDC(String key)
Get the context identified by the key parameter.
|
Iterator<Map.Entry<String,String>> |
iterator()
A read only iterator delivering all key-value-pairs.
|
void |
putMDC(String key,
String val)
Put a context value (the val parameter) as identified with the key parameter into the current thread's context
map.
|
void |
removeMDC(String key)
Remove the the context identified by the key parameter.
|
void putMDC(@NotNull String key, String val)
key
- Key to put for.val
- Value to put.@Nullable String getMDC(String key)
key
- Key to query.null
void removeMDC(@NotNull String key)
key
- Key to removevoid clearMDC()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500