public class DockerHealthCheck
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DockerHealthCheck.Builder
Builds the immutable
DockerHealthCheck . |
Modifier and Type | Method and Description |
---|---|
static DockerHealthCheck.Builder |
fromCommand(java.util.List<java.lang.String> command)
Creates a new
DockerHealthCheck.Builder with the specified command. |
java.util.List<java.lang.String> |
getCommand()
Gets the optional healthcheck command.
|
java.util.Optional<java.time.Duration> |
getInterval()
Gets the optional healthcheck interval.
|
java.util.Optional<java.lang.Integer> |
getRetries()
Gets the optional healthcheck retry count.
|
java.util.Optional<java.time.Duration> |
getStartPeriod()
Gets the optional healthcheck start period.
|
java.util.Optional<java.time.Duration> |
getTimeout()
Gets the optional healthcheck timeout.
|
public static DockerHealthCheck.Builder fromCommand(java.util.List<java.lang.String> command)
DockerHealthCheck.Builder
with the specified command.command
- the commandDockerHealthCheck.Builder
public java.util.List<java.lang.String> getCommand()
public java.util.Optional<java.time.Duration> getInterval()
public java.util.Optional<java.time.Duration> getTimeout()
public java.util.Optional<java.time.Duration> getStartPeriod()
public java.util.Optional<java.lang.Integer> getRetries()