Package org.jboss.logmanager.log4j
Class ThreadContextMDCMap
- java.lang.Object
-
- org.jboss.logmanager.log4j.ThreadContextMDCMap
-
- All Implemented Interfaces:
org.apache.logging.log4j.spi.ThreadContextMap
public class ThreadContextMDCMap extends Object implements org.apache.logging.log4j.spi.ThreadContextMap
AThreadContextMapimplementation which delegates toMDC.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description ThreadContextMDCMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(String key)Stringget(String key)Map<String,String>getCopy()Map<String,String>getImmutableMapOrNull()booleanisEmpty()voidput(String key, String value)voidremove(String key)
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
containsKey
public boolean containsKey(String key)
- Specified by:
containsKeyin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
get
public String get(String key)
- Specified by:
getin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
getCopy
public Map<String,String> getCopy()
- Specified by:
getCopyin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
getImmutableMapOrNull
public Map<String,String> getImmutableMapOrNull()
- Specified by:
getImmutableMapOrNullin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
put
public void put(String key, String value)
- Specified by:
putin interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
remove
public void remove(String key)
- Specified by:
removein interfaceorg.apache.logging.log4j.spi.ThreadContextMap
-
-