Interface WebhookCacheService
- All Known Implementing Classes:
DefaultWebhookCacheService
public interface WebhookCacheService
A service to cache deleted
ItemModel data representation for Webhook.-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheDeletedItem(ItemModel item, InterceptorContext ctx) Cache deletedItemModelFindItemModelin deleted cachefindItemPayloads(PK pk) FindWebhookItemPayloadconverted from deletedItemModelin converted cache
-
Method Details
-
findItemPayloads
FindWebhookItemPayloadconverted from deletedItemModelin converted cache- Parameters:
pk- PK of deletedItemModelto find- Returns:
- return
WebhookItemPayloadif found; otherwise returnsOptional.empty()
-
findItem
FindItemModelin deleted cache -
cacheDeletedItem
Cache deletedItemModel- Parameters:
item- PK of deletedItemModelto cachectx- theInterceptorContext
-