Class HTTPRouteTimeouts
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1.HTTPRouteTimeouts
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<HTTPRouteTimeoutsBuilder>
,io.fabric8.kubernetes.api.model.KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class HTTPRouteTimeouts extends Object implements io.fabric8.kubernetes.api.builder.Editable<HTTPRouteTimeoutsBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
HTTPRouteTimeouts defines timeouts that can be configured for an HTTPRoute.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HTTPRouteTimeouts()
No args constructor for use in serializationHTTPRouteTimeouts(String backendRequest, String request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTPRouteTimeoutsBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getBackendRequest()
BackendRequest specifies a timeout for an individual request from the gateway to a backend.String
getRequest()
Request specifies the maximum duration for a gateway to respond to an HTTP request.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setBackendRequest(String backendRequest)
BackendRequest specifies a timeout for an individual request from the gateway to a backend.void
setRequest(String request)
Request specifies the maximum duration for a gateway to respond to an HTTP request.HTTPRouteTimeoutsBuilder
toBuilder()
-
-
-
Method Detail
-
getBackendRequest
public String getBackendRequest()
BackendRequest specifies a timeout for an individual request from the gateway to a backend. This covers the time from when the request first starts being sent from the gateway to when the full response has been received from the backend.Setting a timeout to the zero duration (e.g. "0s") SHOULD disable the timeout completely. Implementations that cannot completely disable the timeout MUST instead interpret the zero duration as the longest possible value to which the timeout can be set.
An entire client HTTP transaction with a gateway, covered by the Request timeout, may result in more than one call from the gateway to the destination backend, for example, if automatic retries are supported.
The value of BackendRequest must be a Gateway API Duration string as defined by GEP-2257. When this field is unspecified, its behavior is implementation-specific; when specified, the value of BackendRequest must be no more than the value of the Request timeout (since the Request timeout encompasses the BackendRequest timeout).
Support: Extended
-
setBackendRequest
public void setBackendRequest(String backendRequest)
BackendRequest specifies a timeout for an individual request from the gateway to a backend. This covers the time from when the request first starts being sent from the gateway to when the full response has been received from the backend.Setting a timeout to the zero duration (e.g. "0s") SHOULD disable the timeout completely. Implementations that cannot completely disable the timeout MUST instead interpret the zero duration as the longest possible value to which the timeout can be set.
An entire client HTTP transaction with a gateway, covered by the Request timeout, may result in more than one call from the gateway to the destination backend, for example, if automatic retries are supported.
The value of BackendRequest must be a Gateway API Duration string as defined by GEP-2257. When this field is unspecified, its behavior is implementation-specific; when specified, the value of BackendRequest must be no more than the value of the Request timeout (since the Request timeout encompasses the BackendRequest timeout).
Support: Extended
-
getRequest
public String getRequest()
Request specifies the maximum duration for a gateway to respond to an HTTP request. If the gateway has not been able to respond before this deadline is met, the gateway MUST return a timeout error.For example, setting the `rules.timeouts.request` field to the value `10s` in an `HTTPRoute` will cause a timeout if a client request is taking longer than 10 seconds to complete.
Setting a timeout to the zero duration (e.g. "0s") SHOULD disable the timeout completely. Implementations that cannot completely disable the timeout MUST instead interpret the zero duration as the longest possible value to which the timeout can be set.
This timeout is intended to cover as close to the whole request-response transaction as possible although an implementation MAY choose to start the timeout after the entire request stream has been received instead of immediately after the transaction is initiated by the client.
The value of Request is a Gateway API Duration string as defined by GEP-2257. When this field is unspecified, request timeout behavior is implementation-specific.
Support: Extended
-
setRequest
public void setRequest(String request)
Request specifies the maximum duration for a gateway to respond to an HTTP request. If the gateway has not been able to respond before this deadline is met, the gateway MUST return a timeout error.For example, setting the `rules.timeouts.request` field to the value `10s` in an `HTTPRoute` will cause a timeout if a client request is taking longer than 10 seconds to complete.
Setting a timeout to the zero duration (e.g. "0s") SHOULD disable the timeout completely. Implementations that cannot completely disable the timeout MUST instead interpret the zero duration as the longest possible value to which the timeout can be set.
This timeout is intended to cover as close to the whole request-response transaction as possible although an implementation MAY choose to start the timeout after the entire request stream has been received instead of immediately after the transaction is initiated by the client.
The value of Request is a Gateway API Duration string as defined by GEP-2257. When this field is unspecified, request timeout behavior is implementation-specific.
Support: Extended
-
edit
public HTTPRouteTimeoutsBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<HTTPRouteTimeoutsBuilder>
-
toBuilder
public HTTPRouteTimeoutsBuilder toBuilder()
-
-