Class DockerHealthCheck


  • public class DockerHealthCheck
    extends java.lang.Object
    Configuration information for performing healthchecks on a Docker container.
    • Method Detail

      • getCommand

        public java.util.List<java.lang.String> getCommand()
        Gets the optional healthcheck command. A missing command means that it will be inherited from the base image.
        Returns:
        the healthcheck command
      • getInterval

        public java.util.Optional<java.time.Duration> getInterval()
        Gets the optional healthcheck interval. A missing command means that it will be inherited from the base image.
        Returns:
        the healthcheck interval
      • getTimeout

        public java.util.Optional<java.time.Duration> getTimeout()
        Gets the optional healthcheck timeout. A missing command means that it will be inherited from the base image.
        Returns:
        the healthcheck timeout
      • getStartPeriod

        public java.util.Optional<java.time.Duration> getStartPeriod()
        Gets the optional healthcheck start period. A missing command means that it will be inherited from the base image.
        Returns:
        the healthcheck start period
      • getRetries

        public java.util.Optional<java.lang.Integer> getRetries()
        Gets the optional healthcheck retry count. A missing command means that it will be inherited from the base image.
        Returns:
        the healthcheck retry count