public final class MDC extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
clear() |
Remove all existing mapped context values.
|
static Object |
get(String key) |
Get the context value by a key.
|
static Hashtable |
getContext() |
Get a copy of all mapped context values.
|
static void |
put(String key,
Object value) |
Put a new mapped context value.
|
static void |
remove(String key) |
Remove a mapped context value if existing.
|
public static Hashtable getContext()
public static Object get(String key)
key - Key of mappingnullpublic static void put(String key, Object value)
key - Key of mappingvalue - New valuepublic static void remove(String key)
key - Key of mappingpublic static void clear()
Copyright © 2019. All rights reserved.