Examples of countDown()


Examples of org.elasticsearch.common.util.concurrent.CountDown.countDown()

                @Override
                public void onResponse(MetaDataDeleteIndexService.Response response) {
                    if (!response.acknowledged()) {
                        ack = false;
                    }
                    if (count.countDown()) {
                        if (lastFailure != null) {
                            listener.onFailure(lastFailure);
                        } else {
                            listener.onResponse(new DeleteIndexResponse(ack));
                        }
View Full Code Here

Examples of org.hornetq.utils.ReusableLatch.countDown()

      }

      for (int i = 100; i > 0; i--)
      {
         Assert.assertEquals(i, latch.getCount());
         latch.countDown();
         Assert.assertEquals(i - 1, latch.getCount());
      }

      latch.await();
   }
View Full Code Here

Examples of org.mcsg.survivalgames.Game.countdown()

    Game g = GameManager.getInstance().getGame(game);
    if (g.getMode() != Game.GameMode.WAITING && !player.hasPermission("sg.arena.restart")) {
      MessageManager.getInstance().sendFMessage(PrefixType.ERROR, "error.alreadyingame", player);
      return true;
    }
    g.countdown(seconds);

    msgmgr.sendFMessage(PrefixType.INFO, "game.started", player, "arena-" + game);

    return true;
  }
View Full Code Here

Examples of org.mule.util.concurrent.Latch.countDown()

        final Latch latch = new Latch();
        muleContext.registerListener(new SecurityNotificationListener<SecurityNotification>()
        {
            public void onNotification(SecurityNotification notification)
            {
                latch.countDown();
            }
        });
        MuleClient client = new MuleClient(muleContext);
        MuleMessage result = client.request("vm://toclient", 5000);
        assertNotNull(result);
View Full Code Here

Examples of org.redisson.core.RCountDownLatch.countDown()

                try {
                    Thread.sleep(500);
                } catch (InterruptedException e) {
                    Assert.fail();
                }
                latch.countDown();
            }
        });


        executor.execute(new Runnable() {
View Full Code Here

Examples of org.rhq.coregui.client.util.async.CountDownLatch.countDown()

            // there are either 2 or 3 setPreference calls depending on prefs.explicitBeginEnd
            final CountDownLatch latch = CountDownLatch.create(prefs.explicitBeginEnd ? 2 : 3, callback);
            persistCallback = new AsyncCallback<Subject>() {
                @Override
                public void onFailure(Throwable arg0) {
                    latch.countDown();
                }

                @Override
                public void onSuccess(Subject arg0) {
                    latch.countDown();
View Full Code Here

Examples of org.springframework.xd.shell.command.JobCommandTests.JobParametersHolder.countDown()

    for (Entry<String, JobParameter> jobParameterEntry : parameterEntries) {
      jobParametersHolder.addParameter(jobParameterEntry.getKey(), jobParameterEntry.getValue());
    }

    jobParametersHolder.countDown();

    return RepeatStatus.FINISHED;
  }
}
View Full Code Here

Examples of org.tamacat.httpd.jmx.BasicCounter.countDown()

  @Override
  public void afterResponse(HttpRequest request, HttpResponse response,
      HttpContext context) {
    BasicCounter counter = urlCounter.getCounter(getPath(serviceUrl));
    if (counter != null) counter.countDown();
  }
 
  private static String getPath(ServiceUrl serviceUrl) {
    URL host = serviceUrl.getHost();
    String name = host != null?
View Full Code Here

Examples of org.voltcore.zk.ZKCountdownLatch.countDown()

                              perPartitionTxnIds);
            try {
                ZKCountdownLatch latch =
                        new ZKCountdownLatch(m_messenger.getZK(),
                                VoltZK.commandlog_init_barrier, m_messenger.getLiveHostIds().size());
                latch.countDown(true);
                latch.await();
            } catch (Exception e) {
                VoltDB.crashLocalVoltDB("Failed to init and wait on command log init barrier", true, e);
            }
        }
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.