[jboss-cvs] JBossCache/src/org/jboss/cache ...

Manik Surtani manik at jboss.org
Fri Jun 15 08:37:56 EDT 2007


  User: msurtani
  Date: 07/06/15 08:37:56

  Modified:    src/org/jboss/cache  CacheImpl.java
  Log:
  Patched tests to deal with async notifications being emitted, plus proper notifier shutdown/draining
  
  Revision  Changes    Path
  1.92      +51 -52    JBossCache/src/org/jboss/cache/CacheImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/CacheImpl.java,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -b -r1.91 -r1.92
  --- CacheImpl.java	14 Jun 2007 16:02:20 -0000	1.91
  +++ CacheImpl.java	15 Jun 2007 12:37:56 -0000	1.92
  @@ -855,9 +855,7 @@
      private void internalDestroy()
      {
         cacheStatus = CacheStatus.DESTROYING;
  -
         regionManager = null;
  -      notifier.stop();
         notifier = null;
   
         // The rest of these should have already been taken care of in stop,
  @@ -965,6 +963,7 @@
         if (notifier != null)
         {
            notifier.notifyCacheStopped(this, getInvocationContext());
  +         notifier.drainNotificationQueue();
            notifier.removeAllCacheListeners();
            notifier.setEvictionPolicyListener(null);
         }
  
  
  



More information about the jboss-cvs-commits mailing list