Class NoOpMdcManager

    • Constructor Detail

      • NoOpMdcManager

        public NoOpMdcManager()
    • Method Detail

      • put

        public MdcObject put​(String key,
                             String value)
        Description copied from interface: MdcManager
        Puts a context value (the value parameter) as identified with the key parameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
        Specified by:
        put in interface MdcManager
      • put

        public MdcObject put​(String key,
                             String value,
                             boolean removeWhenScopeExits)
        Description copied from interface: MdcManager
        Puts a context value (the value parameter) as identified with the key parameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
        Specified by:
        put in interface MdcManager
        removeWhenScopeExits - if true, this key value pair will be automatically removed from the MDC when this scope exits. If there is not a demonstrable reason for setting this parameter to false then it should be set to true.
      • put

        public MdcObject put​(String key,
                             Map<String,​Object> values)
        Description copied from interface: MdcManager
        Puts a context value (the values parameter) as identified with the key parameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
        Specified by:
        put in interface MdcManager
      • put

        public MdcObject put​(String key,
                             Map<String,​Object> values,
                             boolean removeWhenScopeExits)
        Description copied from interface: MdcManager
        Puts a context value (the values parameter) as identified with the key parameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
        Specified by:
        put in interface MdcManager
        removeWhenScopeExits - if true, this key value pair will be automatically removed from the MDC when this scope exits. If there is not a demonstrable reason for setting this parameter to false then it should be set to true.
      • put

        public MdcObject put​(String key,
                             CustomMdcObject customMdcObject)
        Description copied from interface: MdcManager
        Puts a context value (the customMdcObject parameter) as identified with the key parameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
        Specified by:
        put in interface MdcManager
      • put

        public MdcObject put​(String key,
                             CustomMdcObject customMdcObject,
                             boolean removeWhenScopeExits)
        Description copied from interface: MdcManager
        Puts a context value (the customMdcObject parameter) as identified with the key parameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
        Specified by:
        put in interface MdcManager
        removeWhenScopeExits - if true, this key value pair will be automatically removed from the MDC when this scope exits. If there is not a demonstrable reason for setting this parameter to false then it should be set to true.
      • remove

        public void remove​(String key)
        Description copied from interface: MdcManager
        Removes the context value identified by the key parameter.
        Specified by:
        remove in interface MdcManager
      • clear

        public void clear()
        Description copied from interface: MdcManager
        Clear the MDC.
        Specified by:
        clear in interface MdcManager