public class IndefiniteWaitOneShotStartupCheckStrategy extends OneShotStartupCheckStrategy
OneShotStartupCheckStrategy
that does not impose a timeout.
Intended for situation such as when a long running task forms part of container startup.
It has to be assumed that the container will stop of its own accord, either with a success or failure exit code.
StartupCheckStrategy.StartupStatus
Constructor and Description |
---|
IndefiniteWaitOneShotStartupCheckStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
waitUntilStartupSuccessful(com.github.dockerjava.api.DockerClient dockerClient,
String containerId) |
checkStartupState
getCurrentState
public IndefiniteWaitOneShotStartupCheckStrategy()
public boolean waitUntilStartupSuccessful(com.github.dockerjava.api.DockerClient dockerClient, String containerId)
waitUntilStartupSuccessful
in class StartupCheckStrategy
Copyright © 2017. All rights reserved.