Class DefaultSingleItemChainable
- java.lang.Object
- 
- com.broadleafcommerce.common.extension.cache.api.DefaultSingleItemChainable
 
- 
- All Implemented Interfaces:
- SingleItemCacheable,- SingleItemChainable
 
 public class DefaultSingleItemChainable extends Object implements SingleItemChainable, SingleItemCacheable Default transition object for holding state during method chaining fromCacheUtility.forSingleWith(CacheStateManager).- Author:
- Jeff Fischer
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultSingleItemChainable()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleItemCacheableandCacheInfo(String cacheName, ContextKeyGen generator, Object[] args)SingleItemCacheableandEntityInfo(Supplier<EntityInfo> factoryFunction)Optional.protected booleancanEqual(Object other)<P> PcomputeIfAbsent(Supplier<P> compute)booleanequals(Object o)CacheInfogetCacheInfo()CacheStateManagergetCacheStateManager()Supplier<?>getSingleItemFunction()inthashCode()voidsetCacheInfo(CacheInfo cacheInfo)voidsetCacheStateManager(CacheStateManager cacheStateManager)voidsetSingleItemFunction(Supplier<?> singleItemFunction)StringtoString()SingleItemChainablewith(CacheStateManager cacheStateManager)
 
- 
- 
- 
Method Detail- 
withpublic SingleItemChainable with(CacheStateManager cacheStateManager) 
 - 
andCacheInfopublic SingleItemCacheable andCacheInfo(String cacheName, ContextKeyGen generator, Object[] args) - Specified by:
- andCacheInfoin interface- SingleItemChainable
 
 - 
andEntityInfopublic SingleItemCacheable andEntityInfo(Supplier<EntityInfo> factoryFunction) Description copied from interface:SingleItemCacheableOptional. Provide additional, identifying information about the cache member via the factory function. 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 interface- SingleItemCacheable
- Parameters:
- factoryFunction- Used to construct additional, identifying information about the cache member
- Returns:
- The chained element
 
 - 
computeIfAbsentpublic <P> P computeIfAbsent(Supplier<P> compute) - Specified by:
- computeIfAbsentin interface- SingleItemCacheable
 
 - 
getCacheStateManagerpublic CacheStateManager getCacheStateManager() 
 - 
getCacheInfopublic CacheInfo getCacheInfo() 
 - 
getSingleItemFunctionpublic Supplier<?> getSingleItemFunction() 
 - 
setCacheStateManagerpublic void setCacheStateManager(CacheStateManager cacheStateManager) 
 - 
setCacheInfopublic void setCacheInfo(CacheInfo cacheInfo) 
 - 
setSingleItemFunctionpublic void setSingleItemFunction(Supplier<?> singleItemFunction) 
 - 
canEqualprotected boolean canEqual(Object other) 
 
- 
 
-