public class LocalizedResourceRetentionSet extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
void |
addResources(ConcurrentMap<String,? extends LocallyCachedBlob> blobs)
Add blobs to be checked if they can be deleted.
|
Set<LocallyCachedBlob> |
cleanup(ClientBlobStore store)
Actually cleanup the blobs to try and get below the target cache size.
|
protected int |
getSizeWithNoReferences() |
String |
toString() |
protected int getSizeWithNoReferences()
public void addResources(ConcurrentMap<String,? extends LocallyCachedBlob> blobs)
blobs
- a map of blob name to the blob object. The blobs in this map will be deleted from the map
if they are deleted on disk too.public Set<LocallyCachedBlob> cleanup(ClientBlobStore store)
store
- the blobs store client used to check if the blob has been deleted from the blobstore. If it has, the blob will be
deleted even if the cache is not over the target size.Copyright © 2023 The Apache Software Foundation. All rights reserved.