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

com.xti.spring.cloud.heroku.discovery.metadata.LocallyMutableMetadataProvider Maven / Gradle / Ivy

The newest version!
package com.xti.spring.cloud.heroku.discovery.metadata;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class LocallyMutableMetadataProvider {

    private Map metadata;
    private static LocallyMutableMetadataProvider instance;

    private LocallyMutableMetadataProvider(){
        metadata = new ConcurrentHashMap<>();
    }

    public static LocallyMutableMetadataProvider getInstance(){
        if(instance == null){
            instance = new LocallyMutableMetadataProvider();
        }
        return instance;
    }

    public Map getMetadata() {
        return metadata;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy