Class WriteLockedOffHeapClockCacheFactory<K,​V>

    • Field Detail

      • storageEngineFactory

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

        private final PageSource tableSource
      • tableSize

        private final int tableSize
    • Constructor Detail

      • WriteLockedOffHeapClockCacheFactory

        public WriteLockedOffHeapClockCacheFactory​(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
      • WriteLockedOffHeapClockCacheFactory

        public 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.
        Parameters:
        tableSource - buffer source from which the segment hash tables are allocated
        storageEngineFactory - factory for the segment storage engines
        evictionListener - listener notified on evictions
      • WriteLockedOffHeapClockCacheFactory

        public 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.
        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
      • WriteLockedOffHeapClockCacheFactory

        public 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.
        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