Class PersistentReadWriteLockedOffHeapHashMapFactory<K,V>
- java.lang.Object
-
- org.terracotta.offheapstore.disk.persistent.PersistentReadWriteLockedOffHeapHashMapFactory<K,V>
-
- All Implemented Interfaces:
Factory<PersistentReadWriteLockedOffHeapHashMap<K,V>>
public class PersistentReadWriteLockedOffHeapHashMapFactory<K,V> extends java.lang.Object implements Factory<PersistentReadWriteLockedOffHeapHashMap<K,V>>
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbootstrapprivate static intDEFAULT_TABLE_SIZEprivate Factory<? extends PersistentStorageEngine<? super K,? super V>>storageEngineFactoryprivate inttableSizeprivate MappedPageSourcetableSource
-
Constructor Summary
Constructors Constructor Description PersistentReadWriteLockedOffHeapHashMapFactory(MappedPageSource tableSource, Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory)PersistentReadWriteLockedOffHeapHashMapFactory(MappedPageSource tableSource, Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory, boolean bootstrap)PersistentReadWriteLockedOffHeapHashMapFactory(MappedPageSource tableSource, Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory, int tableSize)PersistentReadWriteLockedOffHeapHashMapFactory(MappedPageSource tableSource, Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory, int tableSize, boolean bootstrap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistentReadWriteLockedOffHeapHashMap<K,V>newInstance()Create a new instance.
-
-
-
Field Detail
-
DEFAULT_TABLE_SIZE
private static final int DEFAULT_TABLE_SIZE
- See Also:
- Constant Field Values
-
storageEngineFactory
private final Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory
-
tableSource
private final MappedPageSource tableSource
-
tableSize
private final int tableSize
-
bootstrap
private final boolean bootstrap
-
-
Constructor Detail
-
PersistentReadWriteLockedOffHeapHashMapFactory
public PersistentReadWriteLockedOffHeapHashMapFactory(MappedPageSource tableSource, Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory)
-
PersistentReadWriteLockedOffHeapHashMapFactory
public PersistentReadWriteLockedOffHeapHashMapFactory(MappedPageSource tableSource, Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory, boolean bootstrap)
-
PersistentReadWriteLockedOffHeapHashMapFactory
public PersistentReadWriteLockedOffHeapHashMapFactory(MappedPageSource tableSource, Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory, int tableSize)
-
PersistentReadWriteLockedOffHeapHashMapFactory
public PersistentReadWriteLockedOffHeapHashMapFactory(MappedPageSource tableSource, Factory<? extends PersistentStorageEngine<? super K,? super V>> storageEngineFactory, int tableSize, boolean bootstrap)
-
-
Method Detail
-
newInstance
public PersistentReadWriteLockedOffHeapHashMap<K,V> newInstance()
Description copied from interface:FactoryCreate a new instance.- Specified by:
newInstancein interfaceFactory<K>- Returns:
- a new instance
-
-