public static class DockerHealthCheck.Builder extends Object
DockerHealthCheck.| Modifier and Type | Method and Description |
|---|---|
DockerHealthCheck |
build() |
DockerHealthCheck.Builder |
setInterval(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(Duration startPeriod)
Sets the initialization time to wait before using healthchecks.
|
DockerHealthCheck.Builder |
setTimeout(Duration timeout)
Sets the time until a healthcheck is considered hung.
|
public DockerHealthCheck.Builder setInterval(Duration interval)
interval - the duration to wait between healthchecks.public DockerHealthCheck.Builder setTimeout(Duration timeout)
timeout - the duration to wait until considering the healthcheck to be hung.public DockerHealthCheck.Builder setStartPeriod(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()
Copyright © 2019. All rights reserved.