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".
|
long |
countDeleteChunks(List<String> chunkIds,
long maxLastModifiedTime)
Deletes the blobs with the given ids.
|
boolean |
deleteChunks(List<String> chunkIds,
long maxLastModifiedTime)
Deprecated.
|
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 stored in the blob store 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 retrieval,
with the special value '0' meaning no filtering by timeException
- the exception@Deprecated boolean deleteChunks(List<String> chunkIds, long maxLastModifiedTime) throws Exception
chunkIds
- the chunk idsmaxLastModifiedTime
- the max last modified time to consider for retrieval,
with the special value '0' meaning no filtering by timeException
- the exceptionlong countDeleteChunks(List<String> chunkIds, long maxLastModifiedTime) throws Exception
chunkIds
- the chunk idsmaxLastModifiedTime
- the max last modified time to consider for retrieval,
with the special value '0' meaning no filtering by timeException
- the exceptionIterator<String> resolveChunks(String blobId) throws IOException
blobId
- the blob idIOException
- Signals that an I/O exception has occurred."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"