Search in sources :

Example 1 with CacheFactory

use of io.pravega.segmentstore.storage.CacheFactory in project pravega by pravega.

the class ServiceBuilder method createReadIndexFactory.

protected ReadIndexFactory createReadIndexFactory() {
    CacheFactory cacheFactory = getSingleton(this.cacheFactory, this.cacheFactoryCreator);
    ReadIndexConfig readIndexConfig = this.serviceBuilderConfig.getConfig(ReadIndexConfig::builder);
    return new ContainerReadIndexFactory(readIndexConfig, cacheFactory, this.coreExecutor);
}
Also used : ReadIndexConfig(io.pravega.segmentstore.server.reading.ReadIndexConfig) ContainerReadIndexFactory(io.pravega.segmentstore.server.reading.ContainerReadIndexFactory) CacheFactory(io.pravega.segmentstore.storage.CacheFactory) InMemoryCacheFactory(io.pravega.segmentstore.storage.mocks.InMemoryCacheFactory)

Aggregations

ContainerReadIndexFactory (io.pravega.segmentstore.server.reading.ContainerReadIndexFactory)1 ReadIndexConfig (io.pravega.segmentstore.server.reading.ReadIndexConfig)1 CacheFactory (io.pravega.segmentstore.storage.CacheFactory)1 InMemoryCacheFactory (io.pravega.segmentstore.storage.mocks.InMemoryCacheFactory)1