Class ConcurrentOpenHashMap.Builder<K,V>
- java.lang.Object
-
- org.apache.bookkeeper.util.collections.ConcurrentOpenHashMap.Builder<K,V>
-
- Enclosing class:
- ConcurrentOpenHashMap<K,V>
public static class ConcurrentOpenHashMap.Builder<K,V> extends java.lang.Object
Builder of ConcurrentOpenHashMap.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
autoShrink
(package private) int
concurrencyLevel
(package private) float
expandFactor
(package private) int
expectedItems
(package private) float
mapFillFactor
(package private) float
mapIdleFactor
(package private) float
shrinkFactor
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentOpenHashMap.Builder<K,V>
autoShrink(boolean autoShrink)
ConcurrentOpenHashMap<K,V>
build()
ConcurrentOpenHashMap.Builder<K,V>
concurrencyLevel(int concurrencyLevel)
ConcurrentOpenHashMap.Builder<K,V>
expandFactor(float expandFactor)
ConcurrentOpenHashMap.Builder<K,V>
expectedItems(int expectedItems)
ConcurrentOpenHashMap.Builder<K,V>
mapFillFactor(float mapFillFactor)
ConcurrentOpenHashMap.Builder<K,V>
mapIdleFactor(float mapIdleFactor)
ConcurrentOpenHashMap.Builder<K,V>
shrinkFactor(float shrinkFactor)
-
-
-
Method Detail
-
expectedItems
public ConcurrentOpenHashMap.Builder<K,V> expectedItems(int expectedItems)
-
concurrencyLevel
public ConcurrentOpenHashMap.Builder<K,V> concurrencyLevel(int concurrencyLevel)
-
mapFillFactor
public ConcurrentOpenHashMap.Builder<K,V> mapFillFactor(float mapFillFactor)
-
mapIdleFactor
public ConcurrentOpenHashMap.Builder<K,V> mapIdleFactor(float mapIdleFactor)
-
expandFactor
public ConcurrentOpenHashMap.Builder<K,V> expandFactor(float expandFactor)
-
shrinkFactor
public ConcurrentOpenHashMap.Builder<K,V> shrinkFactor(float shrinkFactor)
-
autoShrink
public ConcurrentOpenHashMap.Builder<K,V> autoShrink(boolean autoShrink)
-
build
public ConcurrentOpenHashMap<K,V> build()
-
-