Examples of await()


Examples of org.apache.camel.component.mock.MockEndpoint.await()

            frame.addHeader(MESSAGE_ID, StompFrame.encodeHeader("msg:" + i));
            frame.content(utf8("Important Message " + i));
            producerConnection.send(frame);
        }

        mock.await(5, TimeUnit.SECONDS);
        mock.assertIsSatisfied();
    }

    protected RouteBuilder createRouteBuilder() {
        return new RouteBuilder() {
View Full Code Here

Examples of org.apache.camel.component.salesforce.internal.client.SyncResponseCallback.await()

            final Set<String> objectNames = new HashSet<String>();
            final SyncResponseCallback callback = new SyncResponseCallback();
            try {
                getLog().info("Getting Salesforce Objects...");
                restClient.getGlobalObjects(callback);
                if (!callback.await(TIMEOUT, TimeUnit.MILLISECONDS)) {
                    throw new MojoExecutionException("Timeout waiting for getGlobalObjects!");
                }
                final SalesforceException ex = callback.getException();
                if (ex != null) {
                    throw ex;
View Full Code Here

Examples of org.apache.camel.util.concurrent.CountingLatch.await()

                });
                executor.execute(call);
                i++;
            }
            completedExchanges.await();
            if (!streaming && aggregationStrategy != null) {
                for (Exchange resultExchange : exchanges) {
                    doAggregate(result, resultExchange);
                }
            }
View Full Code Here

Examples of org.apache.cassandra.utils.SimpleCondition.await()

        // confirm that the tree was validated
        Token min = validator.tree.partitioner().getMinimumToken();
        assertNotNull(validator.tree.hash(new Range<>(min, min)));

        if (!lock.isSignaled())
            lock.await();
    }

    private static class CompactedRowStub extends AbstractCompactedRow
    {
        private CompactedRowStub(DecoratedKey key)
View Full Code Here

Examples of org.apache.cassandra.utils.concurrent.SimpleCondition.await()

        // confirm that the tree was validated
        Token min = tree.partitioner().getMinimumToken();
        assertNotNull(tree.hash(new Range<>(min, min)));

        if (!lock.isSignaled())
            lock.await();
    }

    private static class CompactedRowStub extends AbstractCompactedRow
    {
        private CompactedRowStub(DecoratedKey key)
View Full Code Here

Examples of org.apache.catalina.Server.await()

    // start the server.
    try {
      server.start();
      printServer(server);
      server.await();
    } catch (LifecycleException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.apache.catalina.core.StandardServer.await()

    // start the server.
    try {
      server.start();
      printServer(server);
      server.await();
    } catch (LifecycleException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.apache.curator.framework.recipes.leader.LeaderLatch.await()

                LeaderLatch latch = startLeaderLatch();

                // Wait until (a) leadership is acquired or (b) the latch is closed by service shutdown or ZK cxn loss.
                if (isRunning()) {
                    try {
                        latch.await();
                    } catch (EOFException e) {
                        // Latch was closed while we were waiting.
                        checkState(!latch.hasLeadership());
                    }
                }
View Full Code Here

Examples of org.apache.derbyTesting.functionTests.util.Barrier.await()

                s.close();

                // Tell the main thread that we've locked the row and that
                // it can go ahead with the index scan. Wait here until the
                // main thread has started the scan.
                barrier.await();

                // The main thread has started the index scan. Give it a
                // second to get to the row we have locked.
                Thread.sleep(1000L);
View Full Code Here

Examples of org.apache.drill.exec.client.PrintingResultsListener.await()

  private int testRunAndPrint(QueryType type, String query) throws Exception{
    query = query.replace("[WORKING_PATH]", TestTools.getWorkingPath());
    PrintingResultsListener resultListener = new PrintingResultsListener(client.getConfig(), Format.TSV, VectorUtil.DEFAULT_COLUMN_WIDTH);
    client.runQuery(type, query, resultListener);
    return resultListener.await();
  }

  protected void testWithListener(QueryType type, String query, UserResultsListener resultListener){
    query = query.replace("[WORKING_PATH]", TestTools.getWorkingPath());
    client.runQuery(type, query, resultListener);
View Full Code Here
TOP
Copyright © 2015 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.