Code example for ConcurrentHashMap

0
    private static Log log = LogFactory.getLog(ProducerDiamondManager.class);
 
    // private final DiamondManager partitionsDiamondManager; 
 
    private final Map<String/* topic */, List<Partition>> partitionsMap =
            new ConcurrentHashMap<String, List<Partition>>();
 
 
    public ProducerDiamondManager(final MetaClientConfig metaClientConfig) {
        // this.partitionsDiamondManager = 
        // new 
        // DefaultDiamondManager(metaClientConfig.getDiamondPartitionsGroup(), 
        // metaClientConfig.getDiamondPartitionsDataId(), new ManagerListener() 
        // { 
        // 
        // @Override 
        // public Executor getExecutor() { 
        // return null; 
        // } 
        // 
        //