Class OriginTimeoutManager

java.lang.Object
com.netflix.zuul.netty.timeouts.OriginTimeoutManager

public class OriginTimeoutManager extends Object
Origin Timeout Manager
Since:
February 24, 2021
  • Constructor Details

    • OriginTimeoutManager

      public OriginTimeoutManager(NettyOrigin origin)
  • Method Details

    • computeReadTimeout

      public Duration computeReadTimeout(HttpRequestMessage request, int attemptNum)
      Derives the read timeout from the configuration. This implementation prefers the longer of either the origin timeout or the request timeout.

      This method can also be used to validate timeout and deadline boundaries and throw exceptions as needed. If extending this method to do validation, you should extend OutboundException and set the appropriate ErrorType.

      Parameters:
      request - the request.
      attemptNum - the attempt number, starting at 1.
    • getRequestClientConfig

      protected com.netflix.client.config.IClientConfig getRequestClientConfig(HttpRequestMessage zuulRequest)
      This method will create a new client config or retrieve the existing one from the current request.
      Parameters:
      zuulRequest - - the request
      Returns:
      the config