public class MemoryBlobStore extends AbstractBlobStore
AbstractBlobStore.BlockId, AbstractBlobStore.Data
Constructor and Description |
---|
MemoryBlobStore() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clear the cache.
|
long |
countDeleteChunks(java.util.List<java.lang.String> chunkIds,
long maxLastModifiedTime)
Ignores the maxlastModifiedTime
|
java.util.Iterator<java.lang.String> |
getAllChunkIds(long maxLastModifiedTime)
Ignores the maxlastModifiedTime
|
void |
startMark()
Start the mark phase.
|
int |
sweep()
Remove all unused blocks.
|
clearInUse, close, deleteChunks, getBlobId, getBlobLength, getBlockSize, getBlockSizeMin, getInputStream, getReference, load, readBlob, resolveChunks, setBlockSize, setBlockSizeMin, setReferenceKey, setReferenceKeyEncoded, setReferenceKeyPlainText, setStatsCollector, writeBlob, writeBlob, writeBlob
public void startMark() throws java.io.IOException
GarbageCollectableBlobStore
startMark
in interface GarbageCollectableBlobStore
startMark
in class AbstractBlobStore
java.io.IOException
public int sweep()
GarbageCollectableBlobStore
sweep
in interface GarbageCollectableBlobStore
sweep
in class AbstractBlobStore
public long countDeleteChunks(java.util.List<java.lang.String> chunkIds, long maxLastModifiedTime) throws java.lang.Exception
chunkIds
- the chunk idsmaxLastModifiedTime
- the max last modified time to consider for retrieval,
with the special value '0' meaning no filtering by timejava.lang.Exception
- the exceptionpublic java.util.Iterator<java.lang.String> getAllChunkIds(long maxLastModifiedTime) throws java.lang.Exception
maxLastModifiedTime
- the max last modified time to consider for retrieval,
with the special value '0' meaning no filtering by timejava.lang.Exception
- the exceptionpublic void clearCache()
GarbageCollectableBlobStore
Copyright © 2010 - 2020 Adobe. All Rights Reserved