Package liquibase.logging.mdc
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.
-
-
Field Summary
-
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
-
Constructor Summary
Constructors Constructor Description NoOpMdcManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the MDC.Map<String,Object>getAll()intgetPriority()MdcObjectput(String key, String value)Puts a context value (thevalueparameter) as identified with thekeyparameter into the MDC.MdcObjectput(String key, Map<String,Object> values)Puts a context value (thevaluesparameter) as identified with thekeyparameter into the MDC.MdcObjectput(String key, CustomMdcObject customMdcObject)Puts a context value (thecustomMdcObjectparameter) as identified with thekeyparameter into the MDC.voidremove(String key)Removes the context value identified by thekeyparameter.
-
-
-
Method Detail
-
put
public MdcObject put(String key, String value)
Description copied from interface:MdcManagerPuts a context value (thevalueparameter) as identified with thekeyparameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.- Specified by:
putin interfaceMdcManager
-
put
public MdcObject put(String key, Map<String,Object> values)
Description copied from interface:MdcManagerPuts a context value (thevaluesparameter) as identified with thekeyparameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.- Specified by:
putin interfaceMdcManager
-
put
public MdcObject put(String key, CustomMdcObject customMdcObject)
Description copied from interface:MdcManagerPuts a context value (thecustomMdcObjectparameter) as identified with thekeyparameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.- Specified by:
putin interfaceMdcManager
-
remove
public void remove(String key)
Description copied from interface:MdcManagerRemoves the context value identified by thekeyparameter.- Specified by:
removein interfaceMdcManager
-
clear
public void clear()
Description copied from interface:MdcManagerClear the MDC.- Specified by:
clearin interfaceMdcManager
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceMdcManager
-
getAll
public Map<String,Object> getAll()
- Specified by:
getAllin interfaceMdcManager
-
-