Examples of await()


Examples of com.basho.riak.client.core.operations.StoreBucketPropsOperation.await()

        StoreBucketPropsOperation propsOp =
            new StoreBucketPropsOperation.Builder(namespace)
                .withSearchIndex("test_index")
                .build();
        cluster.execute(propsOp);
        propsOp.await();
       
        if (!propsOp.isSuccess())
        {
            assertTrue(propsOp.cause().toString(), propsOp.isSuccess());
        }
View Full Code Here

Examples of com.basho.riak.client.core.operations.YzDeleteIndexOperation.await()

        index = indexList.get(0);
        assertEquals(index.getSchema(), "_yz_default");
       
        YzDeleteIndexOperation delOp = new YzDeleteIndexOperation.Builder("test_index").build();
        cluster.execute(delOp);
        delOp.await();
        assertTrue(delOp.isSuccess());
       
    }
   
    @Test
View Full Code Here

Examples of com.basho.riak.client.core.operations.YzFetchIndexOperation.await()

        for (int x = 0; x < 5; x++)
        {
            Thread.sleep(2000);
            YzFetchIndexOperation fetch = new YzFetchIndexOperation.Builder().withIndexName(indexName).build();
            cluster.execute(fetch);
            fetch.await();
            if (fetch.isSuccess())
            {
                return true;
            }
        }
View Full Code Here

Examples of com.basho.riak.client.core.operations.YzPutIndexOperation.await()

        BinaryValue searchBucket = BinaryValue.create("search_bucket");
        YokozunaIndex index = new YokozunaIndex("test_index");
        YzPutIndexOperation putOp = new YzPutIndexOperation.Builder(index).build();
       
        cluster.execute(putOp);
        putOp.await();
       
        assertTrue(putOp.isSuccess());
       
        assureIndexExists("test_index");
       
View Full Code Here

Examples of com.betfair.cougar.netutil.nio.ClientHandshake.await()

        return null;
    }

    private boolean handshake(IoSession session) {
        ClientHandshake clientHandshake = (ClientHandshake) session.getAttribute(ClientHandshake.HANDSHAKE);
        clientHandshake.await(handshakeResponseTimeout);
        session.removeAttribute(ClientHandshake.HANDSHAKE); // not needed anymore
        return clientHandshake.successful();
    }

    // ############################################
View Full Code Here

Examples of com.cloudera.oryx.lambda.serving.ServingLayer.await()

  public static void main(String[] args) throws Exception {
    try (ServingLayer servingLayer = new ServingLayer(ConfigUtils.getDefault())) {
      JVMUtils.closeAtShutdown(servingLayer);
      servingLayer.start();
      servingLayer.await();
    }
  }
}
View Full Code Here

Examples of com.cloudhopper.commons.util.windowing.WindowFuture.await()

                // make sure they all finished
                future0.await();
                future1.await();
                future2.await();
                future3.await();

                Assert.assertEquals(0, session.getSendWindow().getSize());
        } finally {
            SmppSessionUtil.close(session);
        }
View Full Code Here

Examples of com.google.code.hs4j.Command.await()

                  .createOpenIndexCommand(String
                      .valueOf(record.id), record.db,
                      record.tableName, record.indexName,
                      record.fieldList, record.filterFieldList);
              session.write(cmd);
              cmd.await(3000, TimeUnit.MILLISECONDS);
            } catch (InterruptedException e) {
              Thread.currentThread().interrupt();
            } catch (Exception e) {
              log
                  .error(
View Full Code Here

Examples of com.hazelcast.core.ICondition.await()

        final ILock lock = instance.getLock(randomString());
        final ICondition condition = lock.newCondition(randomString());
        lock.lock();

        boolean success = condition.await(1, TimeUnit.MILLISECONDS);

        assertFalse(success);
        assertTrue(lock.isLockedByCurrentThread());
    }
View Full Code Here

Examples of com.hazelcast.core.ICountDownLatch.await()

        latch.trySetCount(1);
        for (int i = 0; i < 10; i++) {
            new TestThread() {
                public void doRun() throws Exception {
                    if (latch.await(1, TimeUnit.MINUTES)) {
                        completedLatch.countDown();
                    }
                }
            }.start();
        }
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.