[jbosscache-dev] JBCACHE-388 Provide modified data in callbacks
Ben Wang
ben.wang at jboss.com
Sun Oct 29 11:20:51 EST 2006
Yes, are are right. Silly me, I was looking at the pre only.
Still, my question is that will it make more sense during post-nodeModified notification to deliver only the data modified (not the new data map). If I am only interested what portion of my data has been modified (and I belive this is a quite common use case), then I would need to keep an old data map and diff it with the new data map. Doable but it would be a performance killer for sure.
Thanks,
-Ben
-----Original Message-----
From: Manik Surtani [mailto:msurtani at redhat.com]
Sent: Friday, October 27, 2006 11:14 PM
To: Ben Wang
Cc: jbosscache-dev at lists.jboss.org
Subject: Re: [jbosscache-dev] JBCACHE-388 Provide modified data in callbacks
Is this when pre is true or false?
If pre is true, the data will be the old data. If pre is false, it will be the new data.
--
Manik Surtani
Lead, JBoss Cache
JBoss, a division of Red Hat
Email: msurtani at redhat.com
Telephone: +44 7786 702 706
MSN: manik at surtani.org
Yahoo/AIM/Skype: maniksurtani
On 27 Oct 2006, at 13:47, Ben Wang wrote:
> Manik,
>
> Can you clarify the semantics for the modified callbacks?
> Specifically, I am looking at the test case:
> CacheListenerTest.testRemoveData()
> calling
> cache.remove(fqn, "key2");
> Still has the nodeModified() coming with the original data map. Is
> this the expected behavior?
>
> I am hoping to see a semantics that bundles exactly the modified data.
>
> Thanks,
>
> -Ben
>
> _______________________________________________
> jbosscache-dev mailing list
> jbosscache-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosscache-dev
More information about the jbosscache-dev
mailing list