Interface MDCAdapter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clears the underlying MDC implementation.
      String get​(String key)
      Gets value for key or null from underlying MDC implementation.
      Map<String,​String> getMap()
      Returns the diagnostic context map from the underlying MDC implementation.
      void put​(String key, String val)
      Puts value into underlying MDC implementation.
      void remove​(String key)
      Removes the value for key from the underlying MDC implementation.
    • Method Detail

      • put

        void put​(String key,
                 String val)
        Puts value into underlying MDC implementation.
        Parameters:
        key - MDC lookup key fro the value
        val - the value
      • get

        String get​(String key)
        Gets value for key or null from underlying MDC implementation.
        Parameters:
        key - MDC lookup key
        Returns:
        the value or null
      • remove

        void remove​(String key)
        Removes the value for key from the underlying MDC implementation.
        Parameters:
        key - MDC lookup key
      • getMap

        Map<String,​String> getMap()
        Returns the diagnostic context map from the underlying MDC implementation.
        Returns:
        the MDC map
      • clear

        void clear()
        Clears the underlying MDC implementation.