public static class DockerHealthCheck.Builder
extends java.lang.Object
DockerHealthCheck
.Modifier and Type | Method and Description |
---|---|
DockerHealthCheck |
build() |
DockerHealthCheck.Builder |
setInterval(java.time.Duration interval)
Sets the time between healthchecks.
|
DockerHealthCheck.Builder |
setRetries(int retries)
Sets the number of times to retry the healthcheck before the container is considered to be
unhealthy.
|
DockerHealthCheck.Builder |
setStartPeriod(java.time.Duration startPeriod)
Sets the initialization time to wait before using healthchecks.
|
DockerHealthCheck.Builder |
setTimeout(java.time.Duration timeout)
Sets the time until a healthcheck is considered hung.
|
public DockerHealthCheck.Builder setInterval(java.time.Duration interval)
interval
- the duration to wait between healthchecks.public DockerHealthCheck.Builder setTimeout(java.time.Duration timeout)
timeout
- the duration to wait until considering the healthcheck to be hung.public DockerHealthCheck.Builder setStartPeriod(java.time.Duration startPeriod)
startPeriod
- the duration to wait before using healthcheckspublic DockerHealthCheck.Builder setRetries(int retries)
retries
- the number of retries before the container is considered to be unhealthypublic DockerHealthCheck build()