Code example for ConcurrentHashMap

Methods: size

0
     * Accessor to the number of StoreData in cache 
     * @return the number of StoreData in cache 
     */ 
    public int size() 
    { 
        return storeDataByClass.size();
    } 
 
    /** 
     * Begin a transaction that changes the StoreData cache 
     */ 
    public void begin() 
    { 
        savedStoreDataByClass = new ConcurrentHashMap<Object, StoreData>(storeDataByClass);
    } 
     
    /** 
     * Rollback the transaction changes to the StoreData cache 
     */ 
    public void rollback() 
    {