liquibase.logging.mdc.NoOpMdcManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.logging.mdc;
import liquibase.plugin.Plugin;
import java.util.Collections;
import java.util.Map;
/**
* Default MDC manager, which does nothing.
*/
public class NoOpMdcManager implements MdcManager {
@Override
public MdcObject put(String key, String value) {
return new MdcObject(key, value);
}
@Override
public MdcObject put(String key, String value, boolean removeWhenScopeExits) {
return new MdcObject(key, value);
}
@Override
public MdcObject put(String key, Map values) {
return new MdcObject(key, values);
}
@Override
public MdcObject put(String key, Map values, boolean removeWhenScopeExits) {
return new MdcObject(key, values);
}
@Override
public MdcObject put(String key, CustomMdcObject customMdcObject) {
return new MdcObject(key, customMdcObject);
}
@Override
public MdcObject put(String key, CustomMdcObject customMdcObject, boolean removeWhenScopeExits) {
return new MdcObject(key, customMdcObject);
}
@Override
public void remove(String key) {
}
@Override
public void clear() {
}
@Override
public int getPriority() {
return Plugin.PRIORITY_DEFAULT;
}
@Override
public Map getAll() {
return Collections.emptyMap();
}
}