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 from
CacheUtility.forSingleWith(CacheStateManager)
.- Author:
- Jeff Fischer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionandCacheInfo
(String cacheName, ContextKeyGen generator, Object[] args) andEntityInfo
(Supplier<EntityInfo> factoryFunction) Optional.protected boolean
<P> P
computeIfAbsent
(Supplier<P> compute) boolean
Supplier<?>
int
hashCode()
void
setCacheInfo
(CacheInfo cacheInfo) void
setCacheStateManager
(CacheStateManager cacheStateManager) void
setSingleItemFunction
(Supplier<?> singleItemFunction) toString()
with
(CacheStateManager cacheStateManager)
-
Constructor Details
-
DefaultSingleItemChainable
public DefaultSingleItemChainable()
-
-
Method Details
-
with
-
andCacheInfo
- Specified by:
andCacheInfo
in interfaceSingleItemChainable
-
andEntityInfo
Description copied from interface:SingleItemCacheable
Optional. 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:
andEntityInfo
in interfaceSingleItemCacheable
- Parameters:
factoryFunction
- Used to construct additional, identifying information about the cache member- Returns:
- The chained element
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceSingleItemCacheable
-
getCacheStateManager
-
getCacheInfo
-
getSingleItemFunction
-
setCacheStateManager
-
setCacheInfo
-
setSingleItemFunction
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-