Package java.util.concurrent

Examples of java.util.concurrent.ConcurrentHashMap$MapReduceValuesToIntTask


     *
     * @param keyReferenceType key reference type
     * @param valueReferenceType value reference type
     */
    public ReferenceMap(ReferenceType keyReferenceType, ReferenceType valueReferenceType) {
        this(new ConcurrentHashMap(), keyReferenceType, valueReferenceType);
    }
View Full Code Here


  public static Map getMapObj(Class<?> clazz) {
    if (clazz.isInterface()) {
      if (clazz.isAssignableFrom(Map.class))
        return new HashMap();
      else if (clazz.isAssignableFrom(ConcurrentMap.class))
        return new ConcurrentHashMap();
      else if (clazz.isAssignableFrom(SortedMap.class))
        return new TreeMap();
      else if (clazz.isAssignableFrom(NavigableMap.class))
        return new TreeMap();
      else if (clazz.isAssignableFrom(ConcurrentNavigableMap.class))
View Full Code Here

     *
     * @param keyReferenceType key reference type
     * @param valueReferenceType value reference type
     */
    public ReferenceMap(ReferenceType keyReferenceType, ReferenceType valueReferenceType) {
        this(new ConcurrentHashMap(), keyReferenceType, valueReferenceType);
    }
View Full Code Here

    public ReferenceMap(ReferenceType keyReferenceType, ReferenceType valueReferenceType) {
        this(new ConcurrentHashMap(), keyReferenceType, valueReferenceType);
    }
   
    public ReferenceMap(ReferenceType keyReferenceType, ReferenceType valueReferenceType, int initSize) {
        this(new ConcurrentHashMap(initSize), keyReferenceType, valueReferenceType);
    }
View Full Code Here

      debug = false;
    }

    archive = new HashMap();
    service = new HashMap();
    session = new ConcurrentHashMap();
    events = new ConcurrentHashMap();

    workers = new Chain();
    queue = new Chain();

    try {
View Full Code Here

            return null;
        }

        if (managedRelationDetails == null)
        {
            managedRelationDetails = new ConcurrentHashMap();
        }
        RelationshipManager relMgr = managedRelationDetails.get(op);
        if (relMgr == null)
        {
            relMgr = new RelationshipManagerImpl((StateManager)op);
View Full Code Here

    }

    serializer = loadSerializer(cl);

    if (_cachedSerializerMap == null)
      _cachedSerializerMap = new ConcurrentHashMap(8);

    if (serializer != null)
    _cachedSerializerMap.put(cl, serializer);

    return serializer;
View Full Code Here

    }

    deserializer = loadDeserializer(cl);

    if (_cachedDeserializerMap == null)
      _cachedDeserializerMap = new ConcurrentHashMap(8);

    if (deserializer != null)
    _cachedDeserializerMap.put(cl, deserializer);

    return deserializer;
View Full Code Here

                    }
                }
                methods = null;

                // initialize cache of parameter types to method
                cache = new ConcurrentHashMap();
            }
            initialized = true; // write-volatile
        }
    }
View Full Code Here

                    }
                }
                ctors = null;

                // initialize cache of parameter types to method
                cache = new ConcurrentHashMap();
            }
            initialized = true; // write-volatile
        }
    }
View Full Code Here

TOP

Related Classes of java.util.concurrent.ConcurrentHashMap$MapReduceValuesToIntTask

Copyright © 2018 www.massapicom. 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.