[jboss-dev-forums] [Design of JBossCache] - Re: Need to make enhacements to CacheListener API

manik.surtani@jboss.com do-not-reply at jboss.com
Fri Jun 15 08:44:58 EDT 2007


1.  Even with using a thread pool, notifications for each call or transaction are performed by the same thread (see Notifier.invokeQueuedNotifications()) - a single Runnable is used to loop thru all registered listeners, for all registered notification events.  So you will get pre and post events in order, and not concurrently.

2.  Hmm, this could be a useful callback - txStarted, txCommitted, txROlledBack (with a Transaction object passed in?  Is this useful?)  Can't help but feel we're reinventing something here though.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054725#4054725

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054725



More information about the jboss-dev-forums mailing list