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

com.netflix.nfsidecar.configSource.MemoryConfigSource Maven / Gradle / Ivy

package com.netflix.nfsidecar.configSource;

import com.google.common.collect.Maps;

import java.util.Map;

public final class MemoryConfigSource extends AbstractConfigSource 
{
    private final Map data = Maps.newConcurrentMap();

    @Override
    public int size() 
    {
        return data.size();
    }

    @Override
    public String get(final String key) 
    {
        return data.get(key);
    }

    @Override
    public void set(final String key, final String value) 
    {
        data.put(key, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy