public interface CacheInvalidationProducer extends CommonCacheInvalidationProducer
ScheduledDeploySystemEventConsumer
Modifier and Type | Method and Description |
---|---|
void |
finalizeEvents(Long processStatusMarker)
Some implementations, including the default implementation
CacheInvalidationProducerImpl ,
will create events for another asynchronous process to consume for the actual invalidation. |
void |
invalidateCache(Long processStatusMarker,
List<WorkflowSandBoxItem> sandBoxItems,
List<String> maxedRegions,
Long sourceSandBox,
Long targetSandBox,
boolean includeAdditionalProducers)
Invalidate any production cache for the specified list of deployed items.
|
void |
invalidateCacheForNonSandboxableItems(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage) |
sendSiteOverrideCacheEvictEvent
void invalidateCache(Long processStatusMarker, List<WorkflowSandBoxItem> sandBoxItems, List<String> maxedRegions, Long sourceSandBox, Long targetSandBox, boolean includeAdditionalProducers)
processStatusMarker
- unique marker id created as part of the original deployment/promote PromotionStrategy.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)
sandBoxItems
- the deployed items for which cache invalidation is requiredmaxedRegions
- any cache regions for which a threshold of individual cache invalidations has been exceeded. When reached, individual cached
invalidations are no longer created, but instead, the whole cache region is evicted. Several region max values
are already defined in common.properties (i.e. blProducts.cache.region.evict.threshold). Additional max values
can be defined using the format [cache region name].cache.region.evict.threshold = [max value].sourceSandBox
- the sandbox from which the original deployment took placetargetSandBox
- the production sandbox (should generally be null)includeAdditionalProducers
- void invalidateCacheForNonSandboxableItems(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage)
persistencePackage
- void finalizeEvents(Long processStatusMarker)
CacheInvalidationProducerImpl
,
will create events for another asynchronous process to consume for the actual invalidation. This method provides
a hook point to enable those events so that they're ready for consumption.processStatusMarker
- unique marker id created as part of the original deployment/promote PromotionStrategy.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)
Copyright © 2021. All rights reserved.