Class VirtualDeploymentListener.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • requestTimeoutInMs

        public VirtualDeploymentListener.Builder requestTimeoutInMs​(Long requestTimeoutInMs)
        The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener.

        If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP/HTTP2 listeners, and disabled (no timeout) for the GRPC listeners. The value 0 (zero) indicates that the timeout is disabled. The timeout cannot be configured for the TCP and TLS_PASSTHROUGH listeners. For streaming responses from the deployed service, consider either keeping the timeout disabled or set a sufficiently high value.

        Parameters:
        requestTimeoutInMs - the value to set
        Returns:
        this builder
      • idleTimeoutInMs

        public VirtualDeploymentListener.Builder idleTimeoutInMs​(Long idleTimeoutInMs)
        The maximum duration in milliseconds for which the request’s stream may be idle.

        The value 0 (zero) indicates that the timeout is disabled.

        Parameters:
        idleTimeoutInMs - the value to set
        Returns:
        this builder