Hi Manik,<br><br>The purpose is the usual that the application would want to take some action on expiry of the entry. Ofcourse the application can also start a timer in parallel but those timers may again need to be synced up in case of distributed apps.<br>
However, your explanation brings out another question - is there an additional overhead (memory related) using expiry on the cache entries as compared to keeping an active control over the cache entry creation and deletion. An application using only cache entries with expiry.<br>
<br>Thanks,<br>Kapil<br><br><br>>Date: Fri, 18 Jun 2010 22:44:59 +0100<br>
>From: Manik Surtani <<a href="mailto:manik@jboss.org">manik@jboss.org</a>><br>
>Subject: Re: [infinispan-dev] Notifications for cache entry expired<br>
>To: infinispan -Dev List <<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>><br>
>Message-ID: <<a href="mailto:3EAE786D-FB0E-4217-AE4F-7D270B3A955F@jboss.org">3EAE786D-FB0E-4217-AE4F-7D270B3A955F@jboss.org</a>><br>
>Content-Type: text/plain; charset=us-ascii<br>
<br>>It is possible, yes, but it will never be very accurate since entries
are only tested for whether they are expired in one of several ways:<br>
<br>
>1. A user thread asks for the entry and it has expired. It will then be removed.<br>
>2. The entry is passivated/overflowed to disk and it has expired. It will again be removed.<br>
>3. An eviction maintenance thread kicks in and detects that it has expired. It will again be removed.<br>
<br>>So even if a notification is generated, it will not be generated at the
time the entry expired, but rather at the time Infinispan realises the
entry has expired (which may be later).<br>
<br>
>Also, what is the purpose of this? It does add quite a bit of overhead.<br>
<br>>Cheers<br>
>Manik<br>
<br>>On 18 Jun 2010, at 18:07, kapil nayar wrote:<br>
<br>
> Hi,<br>
><br>
> I don't see the notification for cache entry expired.<br>
><br>
> Is it on the roadmap / possible to support?<br>
><br>
> Thanks,<br>
> Kapil Nayar<br>
><br>
> ______________________________<div id=":6r" class="ii gt">_________________<br>
> infinispan-dev mailing list<br>
> <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
>--<br>
>Manik Surtani<br>
<a href="mailto:manik@jboss.org">>manik@jboss.org</a><br>
>Lead, Infinispan<br>
>Lead, JBoss Cache<br>
<a href="http://www.infinispan.org/" target="_blank">>http://www.infinispan.org</a><br>
<a href="http://www.jbosscache.org/" target="_blank">>http://www.jbosscache.org</a></div>