All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testcontainers.containers.wait.WaitStrategy Maven / Gradle / Ivy

There is a newer version: 1.20.1
Show newest version
package org.testcontainers.containers.wait;

import org.testcontainers.containers.GenericContainer;

import java.time.Duration;

/**
 * Approach to determine whether a container is ready.
 *
 * @author Pete Cornish {@literal }
 */
public interface WaitStrategy {
    /**
     * Wait until the container has started.
     *
     * @param container the container for which to wait
     */
    void waitUntilReady(GenericContainer container);

    /**
     * @param startupTimeout the duration for which to wait
     * @return this
     */
    WaitStrategy withStartupTimeout(Duration startupTimeout);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy