public class MinimumDurationRunningStartupCheckStrategy extends StartupCheckStrategy
StartupCheckStrategy
that checks the container is running and has been running for
a defined minimum period of time.StartupCheckStrategy.StartupStatus
Constructor and Description |
---|
MinimumDurationRunningStartupCheckStrategy(@NotNull java.time.Duration minimumRunningDuration) |
Modifier and Type | Method and Description |
---|---|
StartupCheckStrategy.StartupStatus |
checkStartupState(com.github.dockerjava.api.DockerClient dockerClient,
java.lang.String containerId) |
getCurrentState, waitUntilStartupSuccessful
public MinimumDurationRunningStartupCheckStrategy(@NotNull @NotNull java.time.Duration minimumRunningDuration)
public StartupCheckStrategy.StartupStatus checkStartupState(com.github.dockerjava.api.DockerClient dockerClient, java.lang.String containerId)
checkStartupState
in class StartupCheckStrategy