Class ReadWriteLockedOffHeapHashMapFactory<K,V>

java.lang.Object
org.terracotta.offheapstore.concurrent.ReadWriteLockedOffHeapHashMapFactory<K,V>
Type Parameters:
K - the type of keys held by the generated maps
V - the type of mapped values
All Implemented Interfaces:
Factory<ReadWriteLockedOffHeapHashMap<K,V>>

public class ReadWriteLockedOffHeapHashMapFactory<K,V> extends Object implements Factory<ReadWriteLockedOffHeapHashMap<K,V>>
Factory of ReadWriteLockedOffHeapHashMap instances.
  • Field Details

    • DEFAULT_TABLE_SIZE

      private static final int DEFAULT_TABLE_SIZE
      See Also:
    • storageEngineFactory

      private final Factory<? extends StorageEngine<? super K, ? super V>> storageEngineFactory
    • tableSource

      private final PageSource tableSource
    • tableAllocationsSteal

      private final boolean tableAllocationsSteal
    • tableSize

      private final int tableSize
  • Constructor Details

    • ReadWriteLockedOffHeapHashMapFactory

      public ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K, ? super V>> storageEngineFactory)
      Creates segments using the given table buffer source and storage engine factory.
      Parameters:
      tableSource - buffer source from which the segment hash tables are allocated
      storageEngineFactory - factory for the segment storage engines
    • ReadWriteLockedOffHeapHashMapFactory

      public ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource, boolean tableAllocationsSteal, Factory<? extends StorageEngine<? super K, ? super V>> storageEngineFactory)
    • ReadWriteLockedOffHeapHashMapFactory

      public ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K, ? super V>> storageEngineFactory, int tableSize)
    • ReadWriteLockedOffHeapHashMapFactory

      public ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource, boolean tableAllocationsSteal, Factory<? extends StorageEngine<? super K, ? super V>> storageEngineFactory, int tableSize)
      Creates segments using the given table buffer source, storage engine factory, and initial table size.
      Parameters:
      tableSource - buffer source from which the segment hash tables are allocated
      tableAllocationsSteal - whether table allocations should steal
      storageEngineFactory - factory for the segment storage engines
      tableSize - initial table size for each segment
  • Method Details