public class MDCContextMap extends Object implements org.apache.logging.log4j.spi.ThreadContextMap
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() |
boolean |
isEmpty() |
void |
put(String key,
String value) |
void |
remove(String key) |
public MDCContextMap()
public void put(String key, String value)
put
in interface org.apache.logging.log4j.spi.ThreadContextMap
public String get(String key)
get
in interface org.apache.logging.log4j.spi.ThreadContextMap
public void remove(String key)
remove
in interface org.apache.logging.log4j.spi.ThreadContextMap
public void clear()
clear
in interface org.apache.logging.log4j.spi.ThreadContextMap
public boolean containsKey(String key)
containsKey
in interface org.apache.logging.log4j.spi.ThreadContextMap
public Map<String,String> getCopy()
getCopy
in interface org.apache.logging.log4j.spi.ThreadContextMap
public Map<String,String> getImmutableMapOrNull()
getImmutableMapOrNull
in interface org.apache.logging.log4j.spi.ThreadContextMap
public boolean isEmpty()
isEmpty
in interface org.apache.logging.log4j.spi.ThreadContextMap
Copyright © 1999-2021 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.