public final class MDCextends Object
|Modifier and Type||Method and Description|
Clears the message diagnostics context.
Returns the value for the key or
Returns the map from the context.
Puts the value onto the context.
Removes the value from the context.
key- the key for the value
val- the value
nullif no value was set
nullif no value was found.
key- the key to lookup the value for
nullif not found
public static void remove(String key)
key- the key of the value to remove
Note that in most implementations this is an expensive operation and should be used sparingly.
public static void clear()
Copyright © 2015 Red Hat, Inc.