Interface SingleItemCacheable
-
- All Known Implementing Classes:
DefaultSingleItemChainable
public interface SingleItemCacheable
API connecting toCacheStateManager.computeIfAbsent(Supplier, CacheInfo)
during method chaining fromCacheUtility.forSingleWith(CacheStateManager)
.- Author:
- Jeff Fischer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SingleItemCacheable
andEntityInfo(Supplier<EntityInfo> factoryFunction)
Optional.<P> P
computeIfAbsent(Supplier<P> compute)
-
-
-
Method Detail
-
andEntityInfo
SingleItemCacheable andEntityInfo(Supplier<EntityInfo> factoryFunction)
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
<P> P computeIfAbsent(Supplier<P> compute)
-
-