public class NoOpMdcManager extends Object implements MdcManager
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
Constructor and Description |
---|
NoOpMdcManager() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the MDC.
|
Map<String,Object> |
getAll() |
int |
getPriority() |
MdcObject |
put(String key,
CustomMdcObject customMdcObject)
Puts a context value (the
customMdcObject parameter) as identified with the key parameter into
the MDC. |
MdcObject |
put(String key,
Map<String,String> values)
Puts a context value (the
values parameter) as identified with the key parameter into
the MDC. |
MdcObject |
put(String key,
String value)
Puts a context value (the
value parameter) as identified with the key parameter into
the MDC. |
void |
remove(String key)
Removes the context value identified by the
key parameter. |
public MdcObject put(String key, String value)
MdcManager
value
parameter) as identified with the key
parameter into
the MDC. The caller is responsible for cleaning up this entry at an appropriate time.put
in interface MdcManager
public MdcObject put(String key, Map<String,String> values)
MdcManager
values
parameter) as identified with the key
parameter into
the MDC. The caller is responsible for cleaning up this entry at an appropriate time.put
in interface MdcManager
public MdcObject put(String key, CustomMdcObject customMdcObject)
MdcManager
customMdcObject
parameter) as identified with the key
parameter into
the MDC. The caller is responsible for cleaning up this entry at an appropriate time.put
in interface MdcManager
public void remove(String key)
MdcManager
key
parameter.remove
in interface MdcManager
public void clear()
MdcManager
clear
in interface MdcManager
public int getPriority()
getPriority
in interface MdcManager
public Map<String,Object> getAll()
getAll
in interface MdcManager
Copyright © 2023 Liquibase.org. All rights reserved.