Although not exactly the same, you could wrap the cache.clear() call around a tx and then listen for @TransactionCompleted.
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
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.