K - the type of keys held by the generated cachesV - the type of mapped valuespublic class WriteLockedOffHeapClockCacheFactory<K,V> extends Object implements Factory<WriteLockedOffHeapClockCache<K,V>>
WriteLockedOffHeapClockCache instances.| Constructor and Description |
|---|
WriteLockedOffHeapClockCacheFactory(PageSource tableSource,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
Creates segments using the given table buffer source and storage engine
factory.
|
WriteLockedOffHeapClockCacheFactory(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.
|
WriteLockedOffHeapClockCacheFactory(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.
|
WriteLockedOffHeapClockCacheFactory(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.
|
| Modifier and Type | Method and Description |
|---|---|
WriteLockedOffHeapClockCache<K,V> |
newInstance()
Creates a new
WriteLockedOffHeapClockCache for use in a
segmented cache. |
public WriteLockedOffHeapClockCacheFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
tableSource - buffer source from which the segment hash tables are allocatedstorageEngineFactory - factory for the segment storage enginespublic WriteLockedOffHeapClockCacheFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, EvictionListener<K,V> evictionListener)
tableSource - buffer source from which the segment hash tables are allocatedstorageEngineFactory - factory for the segment storage enginesevictionListener - listener notified on evictionspublic WriteLockedOffHeapClockCacheFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, int tableSize)
tableSource - buffer source from which the segment hash tables are allocatedstorageEngineFactory - factory for the segment storage enginestableSize - initial table size for each segmentpublic WriteLockedOffHeapClockCacheFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, EvictionListener<K,V> evictionListener, int tableSize)
tableSource - buffer source from which the segment hash tables are allocatedstorageEngineFactory - factory for the segment storage enginesevictionListener - listener notified on evictionstableSize - initial table size for each segmentpublic WriteLockedOffHeapClockCache<K,V> newInstance()
WriteLockedOffHeapClockCache for use in a
segmented cache.newInstance in interface Factory<WriteLockedOffHeapClockCache<K,V>>WriteLockedOffHeapClockCacheCopyright © 2015–2024. All rights reserved.