Package liquibase.logging.mdc
Class NoOpMdcManager
java.lang.Object
liquibase.logging.mdc.NoOpMdcManager
- All Implemented Interfaces:
MdcManager,Plugin
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the MDC.getAll()intPuts a context value (thevalueparameter) as identified with thekeyparameter into the MDC.Puts a context value (thevalueparameter) as identified with thekeyparameter into the MDC.put(String key, List<? extends CustomMdcObject> values) Puts a context value (thevaluesparameter) as identified with thekeyparameter into the MDC.Puts a context value (thevaluesparameter) as identified with thekeyparameter into the MDC.Puts a context value (thevaluesparameter) as identified with thekeyparameter into the MDC.put(String key, CustomMdcObject customMdcObject) Puts a context value (thecustomMdcObjectparameter) as identified with thekeyparameter into the MDC.put(String key, CustomMdcObject customMdcObject, boolean removeWhenScopeExits) Puts a context value (thecustomMdcObjectparameter) as identified with thekeyparameter into the MDC.voidRemoves the context value identified by thekeyparameter.
-
Constructor Details
-
NoOpMdcManager
public NoOpMdcManager()
-
-
Method Details
-
put
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
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 interfaceMdcManagerremoveWhenScopeExits- 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
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
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 interfaceMdcManagerremoveWhenScopeExits- 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
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
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
-
put
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 interfaceMdcManagerremoveWhenScopeExits- 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
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
- Specified by:
getAllin interfaceMdcManager
-