Class CacheInfo
- java.lang.Object
-
- com.broadleafcommerce.common.extension.cache.api.CacheInfo
-
public class CacheInfo extends Object
Basic information used for interaction with theCacheManager
during aCacheUtility.forSingleWith(CacheStateManager)
call.- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description CacheInfo(String cacheName, ContextKeyGen generator, Object[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Object[]
getArgs()
Any method arguments, or other suitable key fragments that should be combined during key generation fromgenerator
.String
getCacheName()
The name of the cache inCacheManager
Supplier<EntityInfo>
getFactoryFunction()
Optional.ContextKeyGen
getGenerator()
TheContextKeyGen
instance responsible for creating a complete and accurate cache key for all the computed members based onimperativeArgs
.int
hashCode()
void
setFactoryFunction(Supplier<EntityInfo> factoryFunction)
Optional.String
toString()
-
-
-
Constructor Detail
-
CacheInfo
public CacheInfo(String cacheName, ContextKeyGen generator, Object[] args)
-
-
Method Detail
-
getCacheName
public String getCacheName()
The name of the cache inCacheManager
-
getGenerator
public ContextKeyGen getGenerator()
TheContextKeyGen
instance responsible for creating a complete and accurate cache key for all the computed members based onimperativeArgs
.
-
getArgs
public Object[] getArgs()
Any method arguments, or other suitable key fragments that should be combined during key generation fromgenerator
.
-
getFactoryFunction
public Supplier<EntityInfo> getFactoryFunction()
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.
-
setFactoryFunction
public void setFactoryFunction(Supplier<EntityInfo> factoryFunction)
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.
-
canEqual
protected boolean canEqual(Object other)
-
-