@Experimental(comment="https://jira.nuxeo.com/browse/NXP-16577") public interface TransientStore
Modifier and Type | Method and Description |
---|---|
void |
doGC()
Runs the Garbage Collecting to delete the Filesystem resources that may correspond to cache entries that were
removed
|
StorageEntry |
get(String key)
Returns a
StorageEntry given its key , or null if not found. |
int |
getStorageSizeMB()
Returns the size of the disk storage used in MB
|
void |
init(TransientStoreConfig config)
Initialize the store from the configuration
|
void |
put(StorageEntry entry)
Adds a new
StorageEntry . |
void |
release(String key)
Informs the Store that the entry can be released if TTL or GC parameters requires to do some cleanup.
|
void |
remove(String key)
Removes a
StorageEntry given its key . |
void |
shutdown()
Shutdown the store.
|
void put(StorageEntry entry)
StorageEntry
.StorageEntry get(String key)
StorageEntry
given its key
, or null if not found.void remove(String key)
StorageEntry
given its key
.void release(String key)
void doGC()
int getStorageSizeMB()
void shutdown()
void init(TransientStoreConfig config)
Copyright © 2015 Nuxeo SA. All rights reserved.