Example usage for org.hibernate.internal.util.collections ConcurrentReferenceHashMap ConcurrentReferenceHashMap

List of usage examples for org.hibernate.internal.util.collections ConcurrentReferenceHashMap ConcurrentReferenceHashMap

Introduction

In this page you can find the example usage for org.hibernate.internal.util.collections ConcurrentReferenceHashMap ConcurrentReferenceHashMap.

Prototype

public ConcurrentReferenceHashMap(int initialCapacity, float loadFactor, int concurrencyLevel,
        ReferenceType keyType, ReferenceType valueType, EnumSet<Option> options) 

Source Link

Document

Creates a new, empty map with the specified initial capacity, reference types, load factor and concurrency level.

Usage

From source file:com.corundumstudio.concurrent.ConcurrentWeakLockMap.java

License:Apache License

public ConcurrentWeakLockMap(int initialCapacity, int concurrencyLevel) {
    lockMap = new ConcurrentReferenceHashMap<K, ReentrantLock>(initialCapacity, .75f, concurrencyLevel,
            ConcurrentReferenceHashMap.ReferenceType.STRONG, ConcurrentReferenceHashMap.ReferenceType.WEAK,
            null);/* w w w.j a  v  a 2 s .  co  m*/
}