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

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

public class ReadWriteLockedOffHeapClockCacheFactory<K,V>
extends Object
implements Factory<ReadWriteLockedOffHeapClockCache<K,V>>

Factory of ReadWriteLockedOffHeapClockCache instances.

Author:
Chris Dennis

Constructor Summary
ReadWriteLockedOffHeapClockCacheFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
          Creates segments using the given table buffer source and storage engine factory.
ReadWriteLockedOffHeapClockCacheFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, EvictionListener<K,V> evictionListener)
          Creates segments using the given table buffer source and storage engine factory.
ReadWriteLockedOffHeapClockCacheFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, EvictionListener<K,V> evictionListener, int tableSize)
          Creates segments using the given table buffer source, storage engine factory, eviction listener and initial table size.
ReadWriteLockedOffHeapClockCacheFactory(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
 ReadWriteLockedOffHeapClockCache<K,V> newInstance()
          Creates a new ReadWriteLockedOffHeapClockCache for use in a segmented cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadWriteLockedOffHeapClockCacheFactory

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

ReadWriteLockedOffHeapClockCacheFactory

public ReadWriteLockedOffHeapClockCacheFactory(PageSource tableSource,
                                               Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory,
                                               EvictionListener<K,V> evictionListener)
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
evictionListener - listener notified on evictions

ReadWriteLockedOffHeapClockCacheFactory

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

ReadWriteLockedOffHeapClockCacheFactory

public ReadWriteLockedOffHeapClockCacheFactory(PageSource tableSource,
                                               Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory,
                                               EvictionListener<K,V> evictionListener,
                                               int tableSize)
Creates segments using the given table buffer source, storage engine factory, eviction listener and initial table size.

Parameters:
tableSource - buffer source from which the segment hash tables are allocated
storageEngineFactory - factory for the segment storage engines
evictionListener - listener notified on evictions
tableSize - initial table size for each segment
Method Detail

newInstance

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

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


Copyright © 2016. All Rights Reserved.