Tabnine Logo
WaitStrategy
Code IndexAdd Tabnine to your IDE (free)

How to use
WaitStrategy
in
org.testcontainers.containers.wait.strategy

Best Java code snippets using org.testcontainers.containers.wait.strategy.WaitStrategy (Showing top 10 results out of 315)

origin: testcontainers/testcontainers-java

  @Override
  protected void waitUntilContainerStarted() {
    getWaitStrategy().waitUntilReady(this);
  }
}
origin: testcontainers/testcontainers-java

/**
 * {@inheritDoc}
 */
@Override
public SELF withStartupTimeout(Duration startupTimeout) {
  getWaitStrategy().withStartupTimeout(startupTimeout);
  return self();
}
origin: testcontainers/testcontainers-java

@Override
public void waitUntilReady(WaitStrategyTarget waitStrategyTarget) {
  Timeouts.doWithTimeout((int) timeout.toMillis(), TimeUnit.MILLISECONDS, () -> {
    for (WaitStrategy strategy : strategies) {
      strategy.waitUntilReady(waitStrategyTarget);
    }
  });
}
origin: testcontainers/testcontainers-java

protected GenericContainer startContainerWithCommand(String shellCommand, WaitStrategy waitStrategy, Integer... ports) {
  // apply WaitStrategy to container
  return new GenericContainer(IMAGE_NAME)
      .withExposedPorts(ports)
      .withCommand("sh", "-c", shellCommand)
      .waitingFor(waitStrategy.withStartupTimeout(Duration.ofMillis(WAIT_TIMEOUT_MILLIS)));
}
origin: testcontainers/testcontainers-java

/**
 * Wait until the container has started. The default implementation simply
 * waits for a port to start listening; other implementations are available
 * as implementations of {@link org.testcontainers.containers.wait.strategy.WaitStrategy}
 *
 * @see #waitingFor(org.testcontainers.containers.wait.strategy.WaitStrategy)
 */
protected void waitUntilContainerStarted() {
  org.testcontainers.containers.wait.strategy.WaitStrategy waitStrategy = getWaitStrategy();
  if (waitStrategy != null) {
    waitStrategy.waitUntilReady(this);
  }
}
origin: org.apache.james/apache-james-backends-rabbitmq

private WaitStrategy waitStrategy() {
  return new WaitAllStrategy()
    .withStrategy(Wait.forHttp("").forPort(DEFAULT_RABBITMQ_ADMIN_PORT)
      .withRateLimiter(RateLimiters.TWENTIES_PER_SECOND)
      .withStartupTimeout(TEN_MINUTES_TIMEOUT))
    .withStrategy(new RabbitMQWaitStrategy(this, TEN_MINUTES_TIMEOUT))
    .withStartupTimeout(TEN_MINUTES_TIMEOUT);
}
origin: org.testcontainers/testcontainers

/**
 * Wait until the container has started. The default implementation simply
 * waits for a port to start listening; other implementations are available
 * as implementations of {@link org.testcontainers.containers.wait.strategy.WaitStrategy}
 *
 * @see #waitingFor(org.testcontainers.containers.wait.strategy.WaitStrategy)
 */
protected void waitUntilContainerStarted() {
  org.testcontainers.containers.wait.strategy.WaitStrategy waitStrategy = getWaitStrategy();
  if (waitStrategy != null) {
    waitStrategy.waitUntilReady(this);
  }
}
origin: org.testcontainers/testcontainers

@Override
public void waitUntilReady(WaitStrategyTarget waitStrategyTarget) {
  Timeouts.doWithTimeout((int) timeout.toMillis(), TimeUnit.MILLISECONDS, () -> {
    for (WaitStrategy strategy : strategies) {
      strategy.waitUntilReady(waitStrategyTarget);
    }
  });
}
origin: org.testcontainers/postgresql

  @Override
  protected void waitUntilContainerStarted() {
    getWaitStrategy().waitUntilReady(this);
  }
}
origin: org.apache.james/apache-james-backends-rabbitmq

public void waitForReadyness() {
  waitStrategy().waitUntilReady(container);
}
org.testcontainers.containers.wait.strategyWaitStrategy

Most used methods

  • waitUntilReady
  • withStartupTimeout

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JList (javax.swing)
  • JTextField (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now