org.testcontainers.containers.wait.WaitStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testcontainers Show documentation
Show all versions of testcontainers Show documentation
Isolated container management for Java code testing
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);
}