Class CachingBlobStore
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
-
- org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.apache.jackrabbit.oak.commons.cache.Cache.Backend<org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId,org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.Data>
,org.apache.jackrabbit.oak.spi.blob.BlobStore
,org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore
- Direct Known Subclasses:
CloudBlobStore
public abstract class CachingBlobStore extends org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
A blob store with a cache.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
blobCacheSize
protected org.apache.jackrabbit.oak.cache.CacheLIRS<java.lang.String,byte[]>
cache
protected static long
DEFAULT_CACHE_SIZE
static java.lang.String
MEM_CACHE_NAME
-
Constructor Summary
Constructors Constructor Description CachingBlobStore()
CachingBlobStore(long cacheSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
long
getBlobCacheSize()
org.apache.jackrabbit.oak.cache.CacheStats
getCacheStats()
-
Methods inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
clearInUse, close, deleteChunks, getBlobId, getBlobLength, getBlockSize, getBlockSizeMin, getInputStream, getOrCreateReferenceKey, getReference, getStatsCollector, isMarkEnabled, load, mark, mark, markInUse, readBlob, readBlockFromBackend, resolveChunks, setBlockSize, setBlockSizeMin, setReferenceKey, setReferenceKeyEncoded, setReferenceKeyPlainText, setStatsCollector, startMark, storeBlock, sweep, usesBlobId, writeBlob, writeBlob, writeBlob
-
-
-
-
Field Detail
-
DEFAULT_CACHE_SIZE
protected static final long DEFAULT_CACHE_SIZE
- See Also:
- Constant Field Values
-
cache
protected final org.apache.jackrabbit.oak.cache.CacheLIRS<java.lang.String,byte[]> cache
-
blobCacheSize
protected final long blobCacheSize
-
MEM_CACHE_NAME
public static final java.lang.String MEM_CACHE_NAME
- See Also:
- Constant Field Values
-
-