[
https://issues.jboss.org/browse/ISPN-694?page=com.atlassian.jira.plugin.s...
]
Galder Zamarreño commented on ISPN-694:
---------------------------------------
From IRC:
{code}
Apr 29 14:47:51 <pferraro> mmarkus: whoops - I meant, also ISPN-694
Apr 29 14:47:52 <jbossbot> jira [ISPN-694] Create Expiration Notification [Reopened
(Unresolved) Feature Request, Major, Unassigned]
https://issues.jboss.org/browse/ISPN-694
Apr 29 14:49:04 <pferraro> mmarkus: I'm in the process of redesigning web
session clustering for wildfly, and these 2 jiras stand in the way of leveraging
infinispan's native expiration and eviction support.
...
Apr 29 18:12:41 <mmarkus1> pferraro: in the scope of ISPN-694, we'd need to make
the CacheStore trigger expiration notifications
Apr 29 18:12:42 <jbossbot> jira [ISPN-694] Create Expiration Notification [Reopened
(Unresolved) Feature Request, Major, Galder Zamarreño]
https://issues.jboss.org/browse/ISPN-694
Apr 29 18:13:25 * manik has quit (Quit: Leaving.)
Apr 29 18:13:39 <mmarkus1> pferraro: are you using a CustomCache store or one that
exists in Infinispan?
...
Apr 29 18:27:34 <pferraro> mmarkus1: For my case, if the cache entry was already
passivated to a cache store, I only need the expiration notification if a subsequent cache
get attempts to load it, but it should have expired.
...
Apr 29 18:28:21 <pferraro> mmarkus1: so - for my case, it is enough that the
in-memory entries are promptly expired - stuff in the cache store can receive expiration
notifications as they are discovered
Apr 29 18:28:38 <pferraro> mmarkus1: does that make sense?
Apr 29 18:29:55 <pferraro> mmarkus1: So, currently, I'm not using a custom cache
store, but rather an existing cache store that emits an expiration notification if it is
ever fetched from the store
Apr 29 18:34:28 <mmarkus1> pferraro_afk: yes, thanks!
{code}
So, for Paul's use case, expiration notifications for entries in memory is really
what's needed.
Give that as discussed in this JIRA, expiration of entries in cache store would require
some careful thought, this part will be deferred until the CacheStore interfaces are
redesigned in the next big major API review.
Create Expiration Notification
------------------------------
Key: ISPN-694
URL:
https://issues.jboss.org/browse/ISPN-694
Project: Infinispan
Issue Type: Feature Request
Components: Eviction
Environment: any
Reporter: Edouard Boily
Assignee: Galder Zamarreño
Attachments: 01.patch
Create a CacheEntryExpired notification and make EvictionManager send this notification
when a cache entry is evicted because it is expired.
Also mage sure the cache entry value is sent over in the event.
CacheEntryEvicted notification should also send the entry value in the event.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira