Interface ImperativeListCacheable
- All Known Implementing Classes:
DefaultImperativeListChainable
public interface ImperativeListCacheable
API connecting to
CacheStateManager.computeIfAbsent(Function, ImperativeListCacheInfo)
during method chaining from CacheUtility.forListWith(CacheStateManager)
.- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionandEntityInfo
(Function<String, EntityInfo> factoryFunction) Optional.<P> List<P>
computeIfAbsent
(Function<List<String>, List<P>> compute)
-
Method Details
-
andEntityInfo
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 duringEntityInfo
construction. 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
-