All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.logging.mdc.MdcObject Maven / Gradle / Ivy

The newest version!
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy