[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...
Manik Surtani
manik at jboss.org
Fri Jun 8 11:02:40 EDT 2007
User: msurtani
Date: 07/06/08 11:02:40
Modified: src/org/jboss/cache/interceptors
NotificationInterceptor.java
Log:
Added logging + notifier should clear queued notifications once emitted
Revision Changes Path
1.7 +3 -0 JBossCache/src/org/jboss/cache/interceptors/NotificationInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NotificationInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/NotificationInterceptor.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- NotificationInterceptor.java 23 May 2007 15:22:03 -0000 1.6
+++ NotificationInterceptor.java 8 Jun 2007 15:02:40 -0000 1.7
@@ -68,7 +68,10 @@
else
{
// fire all queued up notifications now.
+ if (log.isTraceEnabled()) log.trace("Notifications in queue size: " + ctx.getCacheListenerEvents().size());
+ if (log.isTraceEnabled()) log.trace("Notifications in queue: " + ctx.getCacheListenerEvents());
n.invokeQueuedNotifications(ctx);
+ ctx.clearCacheListenerEvents();
}
return retval;
More information about the jboss-cvs-commits
mailing list