Class CachingBlobStore
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
-
- org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore
-
- All Implemented Interfaces:
AutoCloseable
,Cache.Backend<AbstractBlobStore.BlockId,AbstractBlobStore.Data>
,BlobStore
,GarbageCollectableBlobStore
- Direct Known Subclasses:
CloudBlobStore
,MongoBlobStore
,RDBBlobStore
public abstract class CachingBlobStore extends AbstractBlobStore
A blob store with a cache.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
AbstractBlobStore.BlockId, AbstractBlobStore.Data
-
-
Field Summary
Fields Modifier and Type Field Description protected long
blobCacheSize
protected CacheLIRS<String,byte[]>
cache
protected static long
DEFAULT_CACHE_SIZE
static String
MEM_CACHE_NAME
-
Fields inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
BLOCK_SIZE_LIMIT, HASH_ALGORITHM, inUse, TYPE_DATA, TYPE_HASH
-
-
Constructor Summary
Constructors Constructor Description CachingBlobStore()
CachingBlobStore(long cacheSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
Clear the cache.long
getBlobCacheSize()
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore
countDeleteChunks, getAllChunkIds
-
-
-
-
Field Detail
-
DEFAULT_CACHE_SIZE
protected static final long DEFAULT_CACHE_SIZE
- See Also:
- Constant Field Values
-
blobCacheSize
protected final long blobCacheSize
-
MEM_CACHE_NAME
public static final String MEM_CACHE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
clearCache
public void clearCache()
Description copied from interface:GarbageCollectableBlobStore
Clear the cache.
-
getBlobCacheSize
public long getBlobCacheSize()
-
getCacheStats
public CacheStats getCacheStats()
-
-