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
,Cache.Backend<AbstractBlobStore.BlockId,AbstractBlobStore.Data>
,BlobStore
,GarbageCollectableBlobStore
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 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()
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, getReference, load, readBlob, resolveChunks, setBlockSize, setBlockSizeMin, setReferenceKey, setReferenceKeyEncoded, setReferenceKeyPlainText, setStatsCollector, startMark, sweep, writeBlob, writeBlob, writeBlob
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore
countDeleteChunks, getAllChunkIds
-
-
-
-
Field Detail
-
MEM_CACHE_NAME
public static final java.lang.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()
-
-