Interface IResourceStoreManager.IVersionedResourceStore<Key,Value>
- 
- Type Parameters:
 Key- The type of the key.Value- The type of the associated value.
- All Superinterfaces:
 IResourceStoreManager.IVersionedResourceStoreBase<Key,Value>
- Enclosing interface:
 - IResourceStoreManager
 
public static interface IResourceStoreManager.IVersionedResourceStore<Key,Value> extends IResourceStoreManager.IVersionedResourceStoreBase<Key,Value>
Manages values associated with a certain type of key. Each key can be associated with a value, such as e.g. a file with a thumbnail. Each key has a version, which is used to determine whether the value is still valid, e.g. a thumbnail is considered stale if the file was modified after the thumbnail was created. Stale values will be removed and loaded again using a loader.Additionally, you can also bind a loader or version extractor, so that you do not have to specify these arguments each time you wish to obtain a value for a key.
- Since:
 - 8.3.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IResourceStoreManager.IVersionedResourceStoreWithLoaderAndVersionExtractor<Key,Value>bind(ISerializableThrowingFunction<? super Key,? extends Value> loader, ISerializableThrowingFunction<? super Key,?> versionExtractor)Binds to a given loader and version extractor so that values can be obtained without specifying the loader and version.IResourceStoreManager.IVersionedResourceStoreWithLoader<Key,Value>bindLoader(ISerializableThrowingFunction<? super Key,? extends Value> loader)Binds to a given loader so that values can be obtained without specifying the loader.IResourceStoreManager.IVersionedResourceStoreWithVersionExtractor<Key,Value>bindVersionExtractor(ISerializableThrowingFunction<? super Key,?> versionExtractor)Binds to a given version extractor so that values can be obtained without specifying the version.- 
Methods inherited from interface de.xima.fc.common.store.versioned.IResourceStoreManager.IVersionedResourceStoreBase
computeIfAbsent, getIfPresent, remove, removeAndGetIfPresent 
 - 
 
 - 
 
- 
- 
Method Detail
- 
bind
IResourceStoreManager.IVersionedResourceStoreWithLoaderAndVersionExtractor<Key,Value> bind(ISerializableThrowingFunction<? super Key,? extends Value> loader, ISerializableThrowingFunction<? super Key,?> versionExtractor)
Binds to a given loader and version extractor so that values can be obtained without specifying the loader and version.- Parameters:
 loader- The loader to bind to.versionExtractor- The version extractor to bind to.- Returns:
 - The store, bound to a loader and version extractor.
 
 
- 
bindLoader
IResourceStoreManager.IVersionedResourceStoreWithLoader<Key,Value> bindLoader(ISerializableThrowingFunction<? super Key,? extends Value> loader)
Binds to a given loader so that values can be obtained without specifying the loader.- Parameters:
 loader- The loader to bind to.- Returns:
 - The store, bound to a loader.
 
 
- 
bindVersionExtractor
IResourceStoreManager.IVersionedResourceStoreWithVersionExtractor<Key,Value> bindVersionExtractor(ISerializableThrowingFunction<? super Key,?> versionExtractor)
Binds to a given version extractor so that values can be obtained without specifying the version.- Parameters:
 versionExtractor- The version extractor to bind to.- Returns:
 - The store, bound to a loader.
 
 
 - 
 
 -