Interface SingleItemCacheable
- All Known Implementing Classes:
DefaultSingleItemChainable
public interface SingleItemCacheable
API connecting to
CacheStateManager.computeIfAbsent(Supplier, CacheInfo)
during method
chaining from CacheUtility.forSingleWith(CacheStateManager)
.- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionandEntityInfo
(Supplier<EntityInfo> factoryFunction) Optional.<P> P
computeIfAbsent
(Supplier<P> compute)
-
Method Details
-
andEntityInfo
Optional. Provide additional, identifying information about the cache member via the factory function. This information is used to influence the cache key, allowing the identifying information to be discerned by other processes (e.g. discrete cache invalidation).- Parameters:
factoryFunction
- Used to construct additional, identifying information about the cache member- Returns:
- The chained element
-
computeIfAbsent
-