Code example for ConcurrentHashMap

Methods: clear

0
 
    /** 
     * Çå¿ÕËùÓÐÊôÐÔ 
     */ 
    public void clearAttributes() { 
        this.attributes.clear();
    } 
 
 
    /** 
     * ·µ»Ø´Ëpartition¶ÔÏóµÄ¸´ÖÆÆ· 
     *  
     * @return 
     */ 
    public Partition duplicate() { 
        return new Partition(this.brokerId, this.partition, this.partStr);
    } 
 
 
    public Partition(final String str) {
        if (str != null && str.equals(RandomPartiton.toString())) {