public class Wait
extends java.lang.Object
WaitStrategy
instances.Constructor and Description |
---|
Wait() |
Modifier and Type | Method and Description |
---|---|
static WaitStrategy |
defaultWaitStrategy()
Convenience method to return the default WaitStrategy.
|
static DockerHealthcheckWaitStrategy |
forHealthcheck()
Convenience method to return a WaitStrategy leveraging Docker's built-in healthcheck.
|
static HttpWaitStrategy |
forHttp(java.lang.String path)
Convenience method to return a WaitStrategy for an HTTP endpoint.
|
static HttpWaitStrategy |
forHttps(java.lang.String path)
Convenience method to return a WaitStrategy for an HTTPS endpoint.
|
static HostPortWaitStrategy |
forListeningPort()
Convenience method to return a WaitStrategy for an exposed or mapped port.
|
static LogMessageWaitStrategy |
forLogMessage(java.lang.String regex,
int times)
Convenience method to return a WaitStrategy for log messages.
|
static ShellStrategy |
forSuccessfulCommand(java.lang.String command)
Convenience method to return a WaitStrategy for a shell command.
|
public static WaitStrategy defaultWaitStrategy()
public static HostPortWaitStrategy forListeningPort()
HostPortWaitStrategy
public static HttpWaitStrategy forHttp(java.lang.String path)
path
- the path to checkHttpWaitStrategy
public static HttpWaitStrategy forHttps(java.lang.String path)
path
- the path to checkHttpWaitStrategy
public static LogMessageWaitStrategy forLogMessage(java.lang.String regex, int times)
regex
- the regex pattern to check fortimes
- the number of times the pattern is expectedpublic static DockerHealthcheckWaitStrategy forHealthcheck()
public static ShellStrategy forSuccessfulCommand(java.lang.String command)
command
- the command to run