Package org.jboss.logmanager
Interface MDCProvider
public interface MDCProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the current MDC map.copy()Get a copy of the MDC map.Get a copy of the MDC map.Get the value for a key, ornullif there is no mapping.Get the value for a key, ornullif there is no mapping.Set the value of a key, returning the old value (if any) ornullif there was none.Set the value of a key, returning the old value (if any) ornullif there was none.Remove a key.removeObject(String key) Remove a key.
-
Method Details
-
get
Get the value for a key, ornullif there is no mapping.- Parameters:
key- the key- Returns:
- the value
-
getObject
Get the value for a key, ornullif there is no mapping.- Parameters:
key- the key- Returns:
- the value
-
put
Set the value of a key, returning the old value (if any) ornullif there was none.- Parameters:
key- the keyvalue- the new value- Returns:
- the old value or
nullif there was none
-
putObject
Set the value of a key, returning the old value (if any) ornullif there was none.- Parameters:
key- the keyvalue- the new value- Returns:
- the old value or
nullif there was none
-
remove
Remove a key.- Parameters:
key- the key- Returns:
- the old value or
nullif there was none
-
removeObject
Remove a key.- Parameters:
key- the key- Returns:
- the old value or
nullif there was none
-
copy
Get a copy of the MDC map. This is a relatively expensive operation.- Returns:
- a copy of the map
-
copyObject
Get a copy of the MDC map. This is a relatively expensive operation.- Returns:
- a copy of the map
-
clear
void clear()Clear the current MDC map.
-