Class ImperativeListCacheInfo
java.lang.Object
com.broadleafcommerce.common.extension.cache.api.ImperativeListCacheInfo
Store basic information about cache as it relates to calls to
CacheStateManager.computeIfAbsent(Function, ImperativeListCacheInfo)
.- Author:
- Jeff Fischer
-
Constructor Summary
ConstructorDescriptionImperativeListCacheInfo
(String cacheName, Function<Object, String> matchValueFunction, ContextKeyGen generator, List<String> imperativeArgs, Object[] args) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Object[]
getArgs()
Any other method arguments, or other suitable key fragments that should be combined withimperativeArgs
during key generation fromgenerator
.The name of the cache inCacheManager
Optional.TheContextKeyGen
instance responsible for creating a complete and accurate cache key for all the computed members based onimperativeArgs
.A collection of discrete identifying informational items.A function that takes in a cacheable object instance and returns a field value that will be used to match to values fromimperativeArgs
.int
hashCode()
void
setEntityInfoFactoryFunction
(Function<String, EntityInfo> entityInfoFactoryFunction) Optional.toString()
-
Constructor Details
-
ImperativeListCacheInfo
-
-
Method Details
-
getCacheName
The name of the cache inCacheManager
-
getMatchValueFunction
A function that takes in a cacheable object instance and returns a field value that will be used to match to values fromimperativeArgs
. -
getGenerator
TheContextKeyGen
instance responsible for creating a complete and accurate cache key for all the computed members based onimperativeArgs
. -
getImperativeArgs
A collection of discrete identifying informational items. When combined withargs
, each member ofimperativeArgs
serves as an appropriate key for cache. These values are often very specific elements, like primary keys. During cache resolution, if cache misses are found, the missing quantity ofimperativeArgs
are passed to the input param of the function atImperativeListCacheable.computeIfAbsent(Function)
. -
getArgs
Any other method arguments, or other suitable key fragments that should be combined withimperativeArgs
during key generation fromgenerator
. -
getEntityInfoFactoryFunction
Optional. Create an identifying construct that will influence the cache key. This is useful when it is required to support discrete cache invalidation for members related to specific entities. -
setEntityInfoFactoryFunction
Optional. Create an identifying construct that will influence the cache key. This is useful when it is required to support discrete cache invalidation for members related to specific entities. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-