liquibase.logging.mdc.MdcObject 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.Scope;
import java.io.Closeable;
public class MdcObject implements Closeable {
private final String key;
private final Object value;
public MdcObject(String key, Object value) {
this.key = key;
this.value = value;
}
@Override
public void close() {
Scope.getCurrentScope().getMdcManager().remove(key);
}
}