public class MDCContextMap extends Object implements CleanableThreadContextMap
Constructor and Description |
---|
MDCContextMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(String key) |
String |
get(String key) |
Map<String,String> |
getCopy() |
Map<String,String> |
getImmutableMapOrNull() |
StringMap |
getReadOnlyContextData() |
boolean |
isEmpty() |
void |
put(String key,
String value) |
void |
putAll(Map<String,String> m) |
void |
remove(String key) |
void |
removeAll(Iterable<String> keys) |
public void put(String key, String value)
put
in interface ThreadContextMap
public void putAll(Map<String,String> m)
putAll
in interface ThreadContextMap2
public String get(String key)
get
in interface ThreadContextMap
public void remove(String key)
remove
in interface ThreadContextMap
public void removeAll(Iterable<String> keys)
removeAll
in interface CleanableThreadContextMap
public void clear()
clear
in interface ThreadContextMap
public boolean containsKey(String key)
containsKey
in interface ThreadContextMap
public Map<String,String> getCopy()
getCopy
in interface ThreadContextMap
public Map<String,String> getImmutableMapOrNull()
getImmutableMapOrNull
in interface ThreadContextMap
public boolean isEmpty()
isEmpty
in interface ThreadContextMap
public StringMap getReadOnlyContextData()
getReadOnlyContextData
in interface ThreadContextMap2
Copyright © 1999-1970 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.