Package liquibase.logging.mdc
Interface MdcManager
-
- All Superinterfaces:
Plugin
- All Known Implementing Classes:
NoOpMdcManager
@Beta public interface MdcManager extends Plugin
-
-
Field Summary
-
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
-
Method Summary
All Methods Instance Methods Abstract 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,String> 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
@Beta MdcObject put(String key, String value)
Puts a context value (thevalueparameter) as identified with thekeyparameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
-
put
@Beta MdcObject put(String key, Map<String,String> values)
Puts a context value (thevaluesparameter) as identified with thekeyparameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
-
put
@Beta MdcObject put(String key, CustomMdcObject customMdcObject)
Puts a context value (thecustomMdcObjectparameter) as identified with thekeyparameter into the MDC. The caller is responsible for cleaning up this entry at an appropriate time.
-
clear
@Beta void clear()
Clear the MDC.
-
getPriority
@Beta int getPriority()
-
-