3 Replies Latest reply on Apr 4, 2006 2:58 PM by Elias Ross

    PassivationInterceptor synchronization and behavior?

    Elias Ross Master


      In PassivationInterceptor, what is the purpose of this synchronization block?

       synchronized(this) {
       if(meth.equals(TreeCache.evictNodeMethodLocal)) {
       fqn=(Fqn)args[0];
       // evict method local doesn't hold the attrrbutes therefore we have to get them manually
       attributes= getNodeAttributes(fqn);
       // notify listeners to the cache instance that this node is about to be passivated
       cache.notifyNodePassivate(fqn, true);
       loader.put(fqn, attributes);
       if (cache.getUseInterceptorMbeans()&& statsEnabled)
       m_passivations++;
      
       }
      


      Certainly, m_passivations should be locked.

      Also ./src/org/jboss/cache/interceptors/ActivationInterceptor.java same sort of question.