@Experimental(comment="https://jira.nuxeo.com/browse/NXP-16577") public interface TransientStore
Modifier and Type | Method and Description |
---|---|
void |
canDelete(String key)
Informs the Store that the entry can be deleted if TTL or GC parameters requires to do some cleanup
|
void |
doGC()
Runs the Garbage Collecting to delete the Filesystem resources that may correspond
to cache entries that were removed
|
StorageEntry |
get(String key)
Retrieve a new entry inside the Store
|
TransientStoreConfig |
getConfig()
Returns the Store configuration
|
int |
getStorageSizeMB()
Return the size of the disk storage used
|
void |
init(TransientStoreConfig config)
Initialize the store from the configuration
|
void |
put(StorageEntry entry)
Add a new entry in the Store
|
void |
remove(String key)
Remove an entry from the Store
|
void |
removeAll()
Deletes all entries inside the Store
|
void |
shutdown() |
void put(StorageEntry entry) throws IOException
entry
- IOException
StorageEntry get(String key) throws IOException
key
- StorageEntry
or nullIOException
void remove(String key) throws IOException
key
- IOException
void canDelete(String key) throws IOException
key
- IOException
void removeAll() throws IOException
IOException
- *TransientStoreConfig getConfig() throws IOException
TransientStoreConfig
IOException
void doGC()
int getStorageSizeMB()
void shutdown()
void init(TransientStoreConfig config)
config
- Copyright © 2015 Nuxeo SA. All rights reserved.