Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0053976Openbravo ERPA. Platformpublic2023-11-20 09:232023-11-23 08:35
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
PR24Q1 
Core
No
0053976: Support executing actions when a TimeInvalidatedCache entry is invalidated
Currently there is no way to execute actions on an entry of the TimeInvalidatedCache that is going to be invalidated. It would be nice to support this, because it will allow, for example, to execute cleanup actions like closing the resources that may be used by the cached entries before invalidating them.
.
No tags attached.
related to feature request 0048873 closed cberner A new API should be provided to allow creating Time Invalidated Caches 
blocks defect 0053988 closed caristu Support defining external systems as cacheables and closeables 
Issue History
2023-11-20 09:23caristuNew Issue
2023-11-20 09:23caristuAssigned To => caristu
2023-11-20 09:23caristuModules => Core
2023-11-20 09:23caristuTriggers an Emergency Pack => No
2023-11-20 09:26caristuRelationship addedrelated to 0048873
2023-11-20 10:34hgbotNote Added: 0157334
2023-11-20 10:35caristuRelationship addedrelated to 0053900
2023-11-21 17:19hgbotNote Added: 0157430
2023-11-21 17:20caristuRelationship deletedrelated to 0053900
2023-11-21 17:20caristuRelationship deletedrelated to 0048873
2023-11-21 17:20caristuNote Added: 0157431
2023-11-21 17:20caristuStatusnew => closed
2023-11-21 17:20caristuResolutionopen => no change required
2023-11-22 10:20caristuStatusclosed => new
2023-11-22 10:20caristuResolutionno change required => open
2023-11-22 10:20caristuNote Deleted: 0157431
2023-11-22 10:21caristuSummarySupport executing cleanup actions when a TimeInvalidatedCache entry is invalidated => Support executing actions when a TimeInvalidatedCache entry is invalidated
2023-11-22 10:21caristuDescription Updatedbug_revision_view_page.php?rev_id=27157#r27157
2023-11-22 10:22caristuRelationship addedrelated to 0048873
2023-11-22 10:23caristuRelationship addedblocks 0053988
2023-11-22 12:42hgbotResolutionopen => fixed
2023-11-22 12:42hgbotStatusnew => closed
2023-11-22 12:42hgbotNote Added: 0157481
2023-11-22 12:42hgbotFixed in Version => PR24Q1
2023-11-22 12:42hgbotNote Added: 0157482
2023-11-22 12:44caristuNote Deleted: 0157430
2023-11-23 08:32caristuIssue cloned0054008
2023-11-23 08:32caristuRelationship addedrelated to 0054008
2023-11-23 08:35caristuRelationship deletedrelated to 0054008

Notes
(0157334)
hgbot   
2023-11-20 10:34   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1049 [^]
(0157481)
hgbot   
2023-11-22 12:42   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1049 [^]
(0157482)
hgbot   
2023-11-22 12:42   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 477c839742a104ab56a51a47df3954b1c5361044
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 22-11-2023 11:42:29
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/477c839742a104ab56a51a47df3954b1c5361044 [^]

fixes FR-53976: support TimeInvalidatedCache entry removal listener

---
A src/org/openbravo/cache/TimeInvalidatedCacheRemovalListener.java
M src-test/src/org/openbravo/cache/TimeInvalidatedCacheTest.java
M src/org/openbravo/cache/TimeInvalidatedCacheBuilder.java
---