Class Reload4jMDCAdapter

java.lang.Object
org.slf4j.reload4j.Reload4jMDCAdapter
All Implemented Interfaces:
org.slf4j.spi.MDCAdapter

public class Reload4jMDCAdapter extends Object implements org.slf4j.spi.MDCAdapter
  • Constructor Details

    • Reload4jMDCAdapter

      public Reload4jMDCAdapter()
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in interface org.slf4j.spi.MDCAdapter
    • get

      public String get(String key)
      Specified by:
      get in interface org.slf4j.spi.MDCAdapter
    • put

      public void put(String key, String val)
      Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. Log4j does not support null for the val parameter.

      This method delegates all work to log4j's MDC.

      Specified by:
      put in interface org.slf4j.spi.MDCAdapter
      Throws:
      IllegalArgumentException - in case the "key" or "val" parameter is null
    • remove

      public void remove(String key)
      Specified by:
      remove in interface org.slf4j.spi.MDCAdapter
    • getCopyOfContextMap

      public Map getCopyOfContextMap()
      Specified by:
      getCopyOfContextMap in interface org.slf4j.spi.MDCAdapter
    • setContextMap

      public void setContextMap(Map<String,String> contextMap)
      Specified by:
      setContextMap in interface org.slf4j.spi.MDCAdapter
    • pushByKey

      public void pushByKey(String key, String value)
      Specified by:
      pushByKey in interface org.slf4j.spi.MDCAdapter
    • popByKey

      public String popByKey(String key)
      Specified by:
      popByKey in interface org.slf4j.spi.MDCAdapter
    • getCopyOfDequeByKey

      public Deque<String> getCopyOfDequeByKey(String key)
      Specified by:
      getCopyOfDequeByKey in interface org.slf4j.spi.MDCAdapter
    • clearDequeByKey

      public void clearDequeByKey(String key)
      Specified by:
      clearDequeByKey in interface org.slf4j.spi.MDCAdapter