Examples of ConcurrentHashMap


Examples of org.apache.openjpa.lib.util.concurrent.ConcurrentHashMap

     */
    public CacheMap(boolean lru, int max, int size, float load) {
        if (size < 0)
            size = 500;
        if (!lru) {
            cacheMap = new ConcurrentHashMap(size, load) {
                public void overflowRemoved(Object key, Object value) {
                    cacheMapOverflowRemoved(key, value);
                }
            };
            softMap = new ConcurrentReferenceHashMap(ReferenceMap.HARD,
                ReferenceMap.SOFT, size, load) {
                public void overflowRemoved(Object key, Object value) {
                    softMapOverflowRemoved(key, value);
                }

                public void valueExpired(Object key) {
                    softMapValueExpired(key);
                }
            };
            pinnedMap = new ConcurrentHashMap();
            _readLock = null;
        } else {
            cacheMap = new LRUMap(size, load) {
                public void overflowRemoved(Object key, Object value) {
                    cacheMapOverflowRemoved(key, value);
View Full Code Here

Examples of org.apache.wicket.util.concurrent.ConcurrentHashMap

  {
    IClassCache classesToGetAndSetters = getClassesToGetAndSetters();
    Map getAndSetters = (Map)classesToGetAndSetters.get(clz);
    if (getAndSetters == null)
    {
      getAndSetters = new ConcurrentHashMap(8);
      classesToGetAndSetters.put(clz, getAndSetters);
    }

    IGetAndSet getAndSetter = (IGetAndSet)getAndSetters.get(exp);
    if (getAndSetter == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.