Interface IResourceStoreManager.IVersionedResourceStoreWithVersionExtractor<Key,Value>
-
- Type Parameters:
Key
- The type of the key.Value
- The type of the derived value.
- All Superinterfaces:
IResourceStoreManager.IVersionedResourceStoreBase<Key,Value>
,IResourceStoreManager.IVersionedResourceStoreWithVersionExtractorBase<Key,Value>
- Enclosing interface:
- IResourceStoreManager
public static interface IResourceStoreManager.IVersionedResourceStoreWithVersionExtractor<Key,Value> extends IResourceStoreManager.IVersionedResourceStoreWithVersionExtractorBase<Key,Value>
Same asIResourceStoreManager.IVersionedResourceStore
, but with a bound version extractor that does not need to be specified each time when requesting a value for a key.You can also bind a loader, so that you do not have to specify the loader 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>
bindLoader(ISerializableThrowingFunction<? super Key,? extends Value> loader)
Binds to a given loader so that values can be obtained without specifying the loader.-
Methods inherited from interface de.xima.fc.common.store.versioned.IResourceStoreManager.IVersionedResourceStoreBase
computeIfAbsent, getIfPresent, remove, removeAndGetIfPresent
-
Methods inherited from interface de.xima.fc.common.store.versioned.IResourceStoreManager.IVersionedResourceStoreWithVersionExtractorBase
computeIfAbsent, getIfPresent, removeAndGetIfPresent
-
-
-
-
Method Detail
-
bindLoader
IResourceStoreManager.IVersionedResourceStoreWithLoaderAndVersionExtractor<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.
-
-