Interface ImperativeListCacheable
-
- All Known Implementing Classes:
DefaultImperativeListChainable
public interface ImperativeListCacheableAPI connecting toCacheStateManager.computeIfAbsent(Function, ImperativeListCacheInfo)during method chaining fromCacheUtility.forListWith(CacheStateManager).- Author:
- Jeff Fischer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImperativeListCacheableandEntityInfo(Function<String,EntityInfo> factoryFunction)Optional.<P> List<P>computeIfAbsent(Function<List<String>,List<P>> compute)
-
-
-
Method Detail
-
andEntityInfo
ImperativeListCacheable andEntityInfo(Function<String,EntityInfo> factoryFunction)
Optional. Provide additional, identifying information about the cache member via the factory function. The string passed to the factory function is taken from each member ofImperativeListCacheInfo.getImperativeArgs()and is often useful to provide as the id argument duringEntityInfoconstruction. 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
-
-