public class PersistentDiskCache extends org.apache.jackrabbit.oak.segment.spi.persistence.persistentcache.AbstractPersistentCache
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_CACHE_SIZE_MB |
static String |
NAME |
cacheSize, executor, nextCache, segmentCacheStats, THREADS, writesPending| Constructor and Description |
|---|
PersistentDiskCache(File directory,
int cacheMaxSizeMB,
org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitor diskCacheIOMonitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
boolean |
containsSegment(long msb,
long lsb) |
protected org.apache.jackrabbit.oak.commons.Buffer |
readSegmentInternal(long msb,
long lsb) |
void |
writeSegment(long msb,
long lsb,
org.apache.jackrabbit.oak.commons.Buffer buffer) |
close, getCacheStats, getWritesPending, linkWith, readSegment, recordCacheLoadTimeInternalpublic static final int DEFAULT_MAX_CACHE_SIZE_MB
public static final String NAME
public PersistentDiskCache(File directory, int cacheMaxSizeMB, org.apache.jackrabbit.oak.segment.spi.monitor.IOMonitor diskCacheIOMonitor)
protected org.apache.jackrabbit.oak.commons.Buffer readSegmentInternal(long msb, long lsb)
public boolean containsSegment(long msb,
long lsb)
public void writeSegment(long msb,
long lsb,
org.apache.jackrabbit.oak.commons.Buffer buffer)
public void cleanUp()
Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.