Class TimeoutConfiguration

    • Method Detail

      • idleTimeoutSeconds

        public final Integer idleTimeoutSeconds()

        The amount of time in seconds a connection will stay active while idle. A value of 0 can be set to disable idleTimeout.

        The idleTimeout default for HTTP/HTTP2/GRPC is 5 minutes.

        The idleTimeout default for TCP is 1 hour.

        Returns:
        The amount of time in seconds a connection will stay active while idle. A value of 0 can be set to disable idleTimeout.

        The idleTimeout default for HTTP/HTTP2/GRPC is 5 minutes.

        The idleTimeout default for TCP is 1 hour.

      • perRequestTimeoutSeconds

        public final Integer perRequestTimeoutSeconds()

        The amount of time waiting for the upstream to respond with a complete response per request. A value of 0 can be set to disable perRequestTimeout. perRequestTimeout can only be set if Service Connect appProtocol isn't TCP. Only idleTimeout is allowed for TCP appProtocol.

        Returns:
        The amount of time waiting for the upstream to respond with a complete response per request. A value of 0 can be set to disable perRequestTimeout. perRequestTimeout can only be set if Service Connect appProtocol isn't TCP. Only idleTimeout is allowed for TCP appProtocol.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)