Class ContainerAppProbeTcpSocket


  • public final class ContainerAppProbeTcpSocket
    extends Object
    TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.
    • Constructor Detail

      • ContainerAppProbeTcpSocket

        public ContainerAppProbeTcpSocket()
    • Method Detail

      • host

        public String host()
        Get the host property: Optional: Host name to connect to, defaults to the pod IP.
        Returns:
        the host value.
      • withHost

        public ContainerAppProbeTcpSocket withHost​(String host)
        Set the host property: Optional: Host name to connect to, defaults to the pod IP.
        Parameters:
        host - the host value to set.
        Returns:
        the ContainerAppProbeTcpSocket object itself.
      • port

        public int port()
        Get the port property: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
        Returns:
        the port value.
      • withPort

        public ContainerAppProbeTcpSocket withPort​(int port)
        Set the port property: Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
        Parameters:
        port - the port value to set.
        Returns:
        the ContainerAppProbeTcpSocket object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.