Package org.infinispan.manager

Examples of org.infinispan.manager.EmbeddedCacheManager.removeListener()


         return;
      }
      started = false;
      EmbeddedCacheManager cacheManager = cache.getCacheManager();
      if (cacheManager.getListeners().contains(listenerRegistration)) {
         cacheManager.removeListener(listenerRegistration);
      } else {
         throw new IllegalStateException("Listener must have been registered!");
      }
      //most likely the listeners collection is shared between CacheManager and the Cache
      if (cache.getListeners().contains(listenerRegistration)) {
View Full Code Here


            logger.warn(e.getMessage(), e);
         }
      }
     
      EmbeddedCacheManager container = entry.getContainer();
      container.removeListener(entry);
      container.stop();
   }
  
   private void bind(String jndiName, Object value) throws NamingException
   {
View Full Code Here

   {
      if (this.viewChangeListener != null)
      {
         EmbeddedCacheManager container = (EmbeddedCacheManager) this.sessionCache.getCacheManager();
        
         container.removeListener(this.viewChangeListener);
      }
     
      this.sessionCache.removeListener(this);
     
      this.sessionCache.stop();
View Full Code Here

         return;
      }
      started = false;
      EmbeddedCacheManager cacheManager = (EmbeddedCacheManager) cache.getCacheManager();
      if (cacheManager.getListeners().contains(listenerRegistration)) {
         cacheManager.removeListener(listenerRegistration);
      } else {
         throw new IllegalStateException("Listener must have been registered!");
      }
      //most likely the listeners collection is shared between CacheManager and the Cache
      if (cache.getListeners().contains(listenerRegistration)) {
View Full Code Here

         return;
      }
      started = false;
      EmbeddedCacheManager cacheManager = cache.getCacheManager();
      if (cacheManager.getListeners().contains(listenerRegistration)) {
         cacheManager.removeListener(listenerRegistration);
      } else {
         throw new IllegalStateException("Listener must have been registered!");
      }
      //most likely the listeners collection is shared between CacheManager and the Cache
      if (cache.getListeners().contains(listenerRegistration)) {
View Full Code Here

         catch (CacheException e)
         {
            log.warn("Failed to remove " + address + " jvm route entry from from web session cache", e);
         }
        
         container.removeListener(this);
      }
     
      this.cache.removeListener(this);
     
      this.cache.stop();
View Full Code Here

         return;
      }
      started = false;
      EmbeddedCacheManager cacheManager = cache.getCacheManager();
      if (cacheManager.getListeners().contains(listenerRegistration)) {
         cacheManager.removeListener(listenerRegistration);
      } else {
         throw new IllegalStateException("Listener must have been registered!");
      }
      //most likely the listeners collection is shared between CacheManager and the Cache
      if (cache.getListeners().contains(listenerRegistration)) {
View Full Code Here

         return;
      }
      started = false;
      EmbeddedCacheManager cacheManager = cache.getCacheManager();
      if (cacheManager.getListeners().contains(listenerRegistration)) {
         cacheManager.removeListener(listenerRegistration);
      } else {
         throw new IllegalStateException("Listener must have been registered!");
      }
      //most likely the listeners collection is shared between CacheManager and the Cache
      if (cache.getListeners().contains(listenerRegistration)) {
View Full Code Here

   public void stop()
   {
      if (this.jvmRouteHandler != null)
      {
         EmbeddedCacheManager container = (EmbeddedCacheManager) this.sessionCache.getCacheManager();
         container.removeListener(this.jvmRouteHandler);
      }
     
      this.sessionCache.removeListener(this);
     
      this.sessionCache.stop();
View Full Code Here

               {
                  debug("Stopped lock manager for \"%s\" container", containerName);
                 
                  lockManagers.remove(containerName);
                 
                  container.removeListener(entry);
               }
            }
         }
      }
   }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.