public interface GarbageCollectableBlobStore extends BlobStore
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clear the cache.
|
void |
clearInUse()
Clear all objects marked as "transiently in use".
|
boolean |
deleteChunks(List<String> chunkIds,
long maxLastModifiedTime)
Deletes the blobs with the given ids.
|
Iterator<String> |
getAllChunkIds(long maxLastModifiedTime)
Gets all the identifiers.
|
long |
getBlockSizeMin()
Get the minimum block size (if there is any).
|
Iterator<String> |
resolveChunks(String blobId)
Resolve chunks from the given Id.
|
void |
setBlockSize(int x)
Set the block size used by this blob store, if the blob store splits
binaries into blocks.
|
void |
startMark()
Start the mark phase.
|
int |
sweep()
Remove all unused blocks.
|
String |
writeBlob(String tempFileName)
Write a blob from a temporary file.
|
getBlobId, getBlobLength, getInputStream, getReference, readBlob, writeBlob
void setBlockSize(int x)
x
- the block size in bytes.String writeBlob(String tempFileName) throws IOException
tempFileName
- the temporary file nameIOException
int sweep() throws IOException
IOException
void startMark() throws IOException
IOException
void clearInUse()
void clearCache()
long getBlockSizeMin()
Iterator<String> getAllChunkIds(long maxLastModifiedTime) throws Exception
maxLastModifiedTime
- the max last modified time to consider for retrievalException
- the exceptionboolean deleteChunks(List<String> chunkIds, long maxLastModifiedTime) throws Exception
chunkIds
- the chunk idsmaxLastModifiedTime
- the max last modified time to consider for retrievalException
- the exceptionIterator<String> resolveChunks(String blobId) throws IOException
blobId
- the blob idIOException
- Signals that an I/O exception has occurred."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"