Package com.netflix.zuul.netty.timeouts
Class OriginTimeoutManager
java.lang.Object
com.netflix.zuul.netty.timeouts.OriginTimeoutManager
Origin Timeout Manager
- Since:
- February 24, 2021
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeReadTimeout
(HttpRequestMessage request, int attemptNum) Derives the read timeout from the configuration.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.
-
Constructor Details
-
OriginTimeoutManager
-
-
Method Details
-
computeReadTimeout
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 appropriateErrorType
.- 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
-