Examples of removeListener()


Examples of org.hibernate.cache.infinispan.util.CacheAdapter.removeListener()

               BatchModeTransactionManager.getInstance().commit();
            } catch (Exception e) {
               holder.e1 = e;
               rollback();
            } finally {
               jbc.removeListener(blocker);
            }
         }
      };

      Thread writer = new Thread() {
View Full Code Here

Examples of org.infinispan.AdvancedCache.removeListener()

        catch (Exception e) {
          holder.e1 = e;
          rollback();
        }
        finally {
          jbc.removeListener( blocker );
        }
      }
    };

    Thread writer = new Thread() {
View Full Code Here

Examples of org.infinispan.Cache.removeListener()

         if (throwError && cause.getCause() instanceof InvocationTargetException)
            throw cause.getCause().getCause();
         else
            throw cause.getCause();
      } finally {
         cache2.removeListener(listener);
      }
   }

   @Listener
   public static class ErrorInducingListener {
View Full Code Here

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

         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

Examples of org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifier.removeListener()

      notifier.addListener(listener);
   }

   public void removeListener(Object listener) {
      CacheManagerNotifier notifier = globalComponentRegistry.getComponent(CacheManagerNotifier.class);
      notifier.removeListener(listener);
   }

   public Set<Object> getListeners() {
      CacheManagerNotifier notifier = globalComponentRegistry.getComponent(CacheManagerNotifier.class);
      return notifier.getListeners();
View Full Code Here

Examples of org.jboss.as.configadmin.service.ConfigAdminService.removeListener()

        try {
            latches[1].await();
            assertNotNull("Second invocation not null", dictionaries[1]);
        } finally {
            configAdmin.removeConfiguration(ConfiguredService.SERVICE_PID);
            configAdmin.removeListener(listener);
        }
    }

    @Test
    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.jboss.msc.service.ServiceTarget.removeListener()

                                    case STARTING_to_START_FAILED:
                                        depUnitPhaseServices.remove(serviceName);
                                        int remaining = deploymentCount.decrementAndGet();
                                        LOGGER.debugf("Initial deployment tracked: %s (remaining=%d)", serviceName.getCanonicalName(), remaining);
                                        if (deploymentCount.get() == 0) {
                                            listenerTarget.removeListener(this);
                                            initialDeploymentsComplete(serviceTarget);
                                            installComplete.checkAndComplete();
                                        }
                                }
                            }
View Full Code Here

Examples of org.jboss.netty.channel.ChannelFuture.removeListener()

    final ChannelFuture connectFuture = bootstrap
        .connect(new InetSocketAddress(host, port));

    connectFuture.addListener(listener);
    if (!latch.await(2, TimeUnit.SECONDS)) {
      connectFuture.removeListener(listener);
      connectFuture.cancel();
      throw new ExecutionException(new TimeoutException("创建链接2秒超时"));
    }
    if (!connectFuture.isSuccess()) {
      throw new RuntimeException("connect server fail " + host,
View Full Code Here

Examples of org.jboss.remoting.Client.removeListener()

         if (client != null)
         {
            // Note. Calling Client.disconnect() does remove the InvokerCallbackHandler registered
            // above. For the http transport, the CallbackPoller will continue running, which will
            // generate a lot of ERROR log messages after the server has shut down.
            client.removeListener(callbackHandler);
            client.disconnect();
         }

         RemotingTestSubsystemService.undeployService(subsystemService);
      }
View Full Code Here

Examples of org.jboss.remoting.ServerInvocationHandler.removeListener()

               if (subsystem == null)
                  handler = defaultHandler;
               else
                  handler = (ServerInvocationHandler) handlers.get(subsystem.toUpperCase());

               handler.removeListener(callbackHandler);
            }
         }
      }
      else
      {
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.