This content has been marked as final.
Show 3 replies
-
1. Re: removAll cache listener support when cache.clear() is invoked?
galder.zamarreno Jan 2, 2012 3:59 AM (in response to amalrajvinoth)Although not exactly the same, you could wrap the cache.clear() call around a tx and then listen for @TransactionCompleted.
-
2. Re: removAll cache listener support when cache.clear() is invoked?
amalrajvinoth Jan 5, 2012 12:40 AM (in response to galder.zamarreno)Hi Galder,
Thanks for your reply.
Eventhough if cache.clear() is used with tx, how do we identify the current transaction is for removeAll() call.
I did go though the APIdocs for org.infinispan.notifications.cachelistener.event.TransactionCompletedEvent<K,V>
But I couldnt find the way to identify cache.clear() is occured in TransactionCompletedEvent.
Please help me to understand the way to do it.
thanks, amal raj
-
3. Re: removAll cache listener support when cache.clear() is invoked?
galder.zamarreno Jan 5, 2012 4:52 AM (in response to amalrajvinoth)If the only thing you call within a tx is cache.clear(), you have it there. Otherwise, if you make call other stuff within a tx, I don't see an easy way of linking both.