Examples of await()


Examples of org.springframework.boot.cli.infrastructure.CommandLineInvoker.Invocation.await()

  @Test
  public void hintProducesListOfValidCommands() throws IOException,
      InterruptedException {
    Invocation cli = this.cli.invoke("hint");
    assertThat(cli.await(), equalTo(0));
    assertThat(cli.getErrorOutput().length(), equalTo(0));
    assertThat(cli.getStandardOutputLines().size(), equalTo(10));
  }

  @Test
View Full Code Here

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

            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

Examples of programming5.net.ReceiveRequest.await()

        byte[] ret = null;
        ReceiveRequest myRequest = new ReceiveRequest();
        synchronized (receiveRequests) {
            receiveRequests.add(myRequest);
        }
        myRequest.await(timeout, TimeUnit.MILLISECONDS);
        if (myRequest.isDone()) {
            ret = myRequest.getMessage();
        }
        return ret;
    }
View Full Code Here

Examples of uk.co.caprica.vlcj.player.condition.conditions.ParsedCondition.await()

            @Override
            protected void onAfter(Integer result) {
                mediaPlayer.stop();
            }
        };
        parsedCondition.await();

        // This is functionally equivalent to the simpler synchronous version:
        /*
        mediaPlayer.startMedia(mrl);  // "start" waits until the media is playing before returning
        mediaPlayer.parseMedia(); // synchronous invocation
View Full Code Here

Examples of uk.co.caprica.vlcj.player.condition.conditions.PausedCondition.await()

                    protected boolean onBefore() {
                        mediaPlayer.pause();
                        return true;
                    }
                };
                pausedCondition.await();

                Condition<?> snapshotTakenCondition = new SnapshotTakenCondition(mediaPlayer) {
                    @Override
                    protected boolean onBefore() {
                        mediaPlayer.saveSnapshot();
View Full Code Here

Examples of uk.co.caprica.vlcj.player.condition.conditions.PlayingCondition.await()

                    // that the required media player event listener is added before your condition is tested
                    mediaPlayer.startMedia(mrl);
                    return true;
                }
            };
            playingCondition.await();

            long time = period;

            for(int i = 0; ; i++) {
View Full Code Here

Examples of uk.co.caprica.vlcj.player.condition.conditions.SnapshotTakenCondition.await()

                    protected boolean onBefore() {
                        mediaPlayer.saveSnapshot();
                        return true;
                    }
                };
                snapshotTakenCondition.await();

                playingCondition = new PlayingCondition(mediaPlayer) {
                    @Override
                    protected boolean onBefore() {
                        mediaPlayer.play();
View Full Code Here

Examples of uk.co.caprica.vlcj.player.condition.conditions.TimeReachedCondition.await()

                    protected boolean onBefore() {
                        mediaPlayer.setTime(targetTime);
                        return true;
                    }
                };
                timeReachedCondition.await();

                Condition<?> pausedCondition = new PausedCondition(mediaPlayer) {
                    @Override
                    protected boolean onBefore() {
                        mediaPlayer.pause();
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.