org.apache.logging.slf4j
Class MDCContextMap

java.lang.Object
  extended by org.apache.logging.slf4j.MDCContextMap
All Implemented Interfaces:
ThreadContextMap

public class MDCContextMap
extends Object
implements ThreadContextMap

Bind the ThreadContextMap to the SLF4J MDC.


Constructor Summary
MDCContextMap()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDCContextMap

public MDCContextMap()
Method Detail

put

public void put(String key,
                String value)
Specified by:
put in interface ThreadContextMap

get

public String get(String key)
Specified by:
get in interface ThreadContextMap

remove

public void remove(String key)
Specified by:
remove in interface ThreadContextMap

clear

public void clear()
Specified by:
clear in interface ThreadContextMap

containsKey

public boolean containsKey(String key)
Specified by:
containsKey in interface ThreadContextMap

getCopy

public Map<String,String> getCopy()
Specified by:
getCopy in interface ThreadContextMap

getImmutableMapOrNull

public Map<String,String> getImmutableMapOrNull()
Specified by:
getImmutableMapOrNull in interface ThreadContextMap

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ThreadContextMap


Copyright © 1999-2015 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.