Class NoOpMdcManager

java.lang.Object
liquibase.logging.mdc.NoOpMdcManager
All Implemented Interfaces:
MdcManager, Plugin

public class NoOpMdcManager extends Object implements MdcManager
Default MDC manager, which does nothing.
  • Constructor Details

    • NoOpMdcManager

      public NoOpMdcManager()
  • Method Details

    • 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, List<? extends CustomMdcObject> 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, 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
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface MdcManager
    • getAll

      public Map<String,Object> getAll()
      Specified by:
      getAll in interface MdcManager