org.terracotta.offheapstore.concurrent
Class WriteLockedOffHeapHashMapFactory<K,V>

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

public class WriteLockedOffHeapHashMapFactory<K,V>
extends Object
implements Factory<WriteLockedOffHeapHashMap<K,V>>

Factory of WriteLockedOffHeapHashMap instances.

Author:
Chris Dennis

Constructor Summary
WriteLockedOffHeapHashMapFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
          Creates segments using the given table buffer source and storage engine factory.
WriteLockedOffHeapHashMapFactory(PageSource tableSource, 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.
 
Method Summary
 WriteLockedOffHeapHashMap<K,V> newInstance()
          Creates a new WriteLockedOffHeapHashMap for use in a segmented map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteLockedOffHeapHashMapFactory

public WriteLockedOffHeapHashMapFactory(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

WriteLockedOffHeapHashMapFactory

public WriteLockedOffHeapHashMapFactory(PageSource tableSource,
                                        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
storageEngineFactory - factory for the segment storage engines
tableSize - initial table size for each segment
Method Detail

newInstance

public WriteLockedOffHeapHashMap<K,V> newInstance()
Creates a new WriteLockedOffHeapHashMap for use in a segmented map.

Specified by:
newInstance in interface Factory<WriteLockedOffHeapHashMap<K,V>>
Returns:
a new WriteLockedOffHeapHashMap


Copyright © 2016. All rights reserved.