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
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
FieldsModifier and TypeFieldDescriptionprotected final long
protected static final long
static final String
Fields inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
BLOCK_SIZE_LIMIT, HASH_ALGORITHM, inUse, TYPE_DATA, TYPE_HASH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the cache.long
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 Details
-
DEFAULT_CACHE_SIZE
protected static final long DEFAULT_CACHE_SIZE- See Also:
-
cache
-
blobCacheSize
protected final long blobCacheSize -
MEM_CACHE_NAME
- See Also:
-
-
Constructor Details
-
CachingBlobStore
public CachingBlobStore(long cacheSize) -
CachingBlobStore
public CachingBlobStore()
-
-
Method Details
-
clearCache
public void clearCache()Description copied from interface:GarbageCollectableBlobStore
Clear the cache. -
getBlobCacheSize
public long getBlobCacheSize() -
getCacheStats
-