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
Constructors -
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) booleaninthashCode()voidsetCacheStateManager(CacheStateManager cacheStateManager) voidsetImperativeListCacheInfo(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:
andCacheInfoin interfaceImperativeListChainable
-
andEntityInfo
Description copied from interface:ImperativeListCacheableOptional. 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).- Specified by:
andEntityInfoin interfaceImperativeListCacheable- Parameters:
factoryFunction- Used to construct additional, identifying information about the cache member- Returns:
- The chained element
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceImperativeListCacheable
-
getCacheStateManager
-
getImperativeListCacheInfo
-
setCacheStateManager
-
setImperativeListCacheInfo
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-