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

com.netflix.archaius.config.CachedState Maven / Gradle / Ivy

The newest version!
package com.netflix.archaius.config;

import com.netflix.archaius.api.Config;

import java.util.Collections;
import java.util.Map;

/** Represents an immutable, current view of a dependent config over its parent configs. */
class CachedState {
    private final Map data;
    private final Map instrumentedKeys;

    CachedState(Map data, Map instrumentedKeys) {
        this.data = Collections.unmodifiableMap(data);
        this.instrumentedKeys = Collections.unmodifiableMap(instrumentedKeys);
    }

    Map getData() {
        return data;
    }

    Map getInstrumentedKeys() {
        return instrumentedKeys;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy