Thanks Galder,
too bad this is so costly (performance wise) to implement.
On 10/12/2012 12:54 PM, Galder ZamarreƱo wrote:
Technically, what your looking for there is for an expiration
listener, as opposed to eviction listener:
https://community.jboss.org/thread/195896
Expiration notifications are not currenly implemented:
https://issues.jboss.org/browse/ISPN-694
https://docs.jboss.org/author/pages/viewpage.action?pageId=5832832
Cheers,
On Oct 8, 2012, at 4:34 PM, Adrian Nistor <anistor(a)redhat.com> wrote:
> Hi,
> I've encountered a strange situation where eviction listeners are not
> invoked although eviction otherwise works perfectly.
>
> I use a local cache with no eviction policy. Looking at the code in
> DataContainerFactory I can see this leads to an unbounded data container
> which does not broadcast eviction notifications.
>
> Now the problem is when I use a put and specify a lifespan (ie. V
> BasicCache.put(K key, V value, long lifespan, TimeUnit lifespanUnit,
> long maxIdleTime, TimeUnit maxIdleTimeUnit)) it behaves a bit strange -
> the entry is evicted when lifetime expires but no listeners are notified
> of the eviction. Is this behaviour intended or is it a bug? I think it
> would make more sense to invoke those listeners. Now it seems to behave
> as if eviction notification mechanism is disabled just because there is
> no default life time set at cache level.
>
> Cheers,
> Adrian
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Galder ZamarreƱo
galder(a)redhat.com
twitter.com/galderz
Project Lead, Escalante
http://escalante.io
Engineer, Infinispan
http://infinispan.org
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev