Class DefaultImperativeListChainable
java.lang.Object
com.broadleafcommerce.common.extension.cache.api.DefaultImperativeListChainable
- All Implemented Interfaces:
ImperativeListCacheable
,ImperativeListChainable
public class DefaultImperativeListChainable
extends Object
implements ImperativeListChainable, ImperativeListCacheable
Default transition object for holding state during method chaining from
CacheUtility.forListWith(CacheStateManager)
.- Author:
- Jeff Fischer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionandCacheInfo
(String cacheName, Function<Object, String> matchFunction, ContextKeyGen generator, List<String> imperativeArgs, Object[] args) andEntityInfo
(Function<String, EntityInfo> factoryFunction) Optional.protected boolean
<P> List<P>
computeIfAbsent
(Function<List<String>, List<P>> compute) boolean
int
hashCode()
void
setCacheStateManager
(CacheStateManager cacheStateManager) void
setImperativeListCacheInfo
(ImperativeListCacheInfo imperativeListCacheInfo) toString()
with
(CacheStateManager cacheStateManager)
-
Constructor Details
-
DefaultImperativeListChainable
public DefaultImperativeListChainable()
-
-
Method Details
-
with
-
andCacheInfo
public ImperativeListCacheable andCacheInfo(String cacheName, Function<Object, String> matchFunction, ContextKeyGen generator, List<String> imperativeArgs, Object[] args) - Specified by:
andCacheInfo
in interfaceImperativeListChainable
-
andEntityInfo
Description copied from interface:ImperativeListCacheable
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).- Specified by:
andEntityInfo
in interfaceImperativeListCacheable
- Parameters:
factoryFunction
- Used to construct additional, identifying information about the cache member- Returns:
- The chained element
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceImperativeListCacheable
-
getCacheStateManager
-
getImperativeListCacheInfo
-
setCacheStateManager
-
setImperativeListCacheInfo
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-