public interface ProcessedItemCache extends ComponentLifecycle
NonDeletingFsConsumer
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the cache.
|
boolean |
contains(java.lang.String key)
Query the cache for this key.
|
void |
evict()
evict any items in the cache that require it..
|
ProcessedItem |
get(java.lang.String key)
Get the TrackedItem associated with the key.
|
void |
save()
Explicitly save the state of the cache.
|
int |
size()
Return the number of items in the cache.
|
void |
update(ProcessedItem i)
Update the cache with the tracked item.
|
void |
update(ProcessedItemList list)
Update the cache with the associated list of entries.
|
close, init, start, stop
void update(ProcessedItem i)
i
- the tracked item.ProcessedItem get(java.lang.String key)
key
- the keyboolean contains(java.lang.String key)
key
- the keyint size()
void clear()
void update(ProcessedItemList list)
list
- a list of tracked itemsvoid save()
void evict()