public class LoadBalancerRetryContext extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
LoadBalancerRetryContext(org.springframework.web.reactive.function.client.ClientRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.reactive.function.client.ClientResponse |
getClientResponse()
Returns the
ClientResponse returned for load-balanced request. |
protected org.springframework.web.reactive.function.client.ClientRequest |
getRequest()
Returns the
ClientRequest that is being load-balanced. |
protected org.springframework.http.HttpMethod |
getRequestMethod()
Returns the
HttpMethod of the ClientRequest that is being
load-balanced. |
protected Integer |
getResponseStatusCode()
Returns the status code from the
ClientResponse returned for load-balanced
request. |
protected Integer |
getRetriesNextServiceInstance()
Returns the number of times a load-balanced request should be retried on the next
ServiceInstance. |
protected Integer |
getRetriesSameServiceInstance()
Returns the number of times a load-balanced request should be retried on the same
ServiceInstance. |
protected void |
incrementRetriesNextServiceInstance()
Increments the counter for the retries executed against the same
ServiceInstance. |
protected void |
incrementRetriesSameServiceInstance()
Increments the counter for the retries executed against the same
ServiceInstance. |
protected void |
resetRetriesSameServiceInstance()
Resets the counter for the retries executed against the same
ServiceInstance. |
protected void |
setClientResponse(org.springframework.web.reactive.function.client.ClientResponse clientResponse)
Sets the
ClientResponse returned for load-balanced request. |
protected LoadBalancerRetryContext(org.springframework.web.reactive.function.client.ClientRequest request)
protected org.springframework.web.reactive.function.client.ClientRequest getRequest()
ClientRequest that is being load-balanced.protected org.springframework.web.reactive.function.client.ClientResponse getClientResponse()
ClientResponse returned for load-balanced request.protected void setClientResponse(org.springframework.web.reactive.function.client.ClientResponse clientResponse)
ClientResponse returned for load-balanced request.clientResponse - the response for the load-balanced request.protected Integer getRetriesSameServiceInstance()
ServiceInstance.protected void incrementRetriesSameServiceInstance()
ServiceInstance.protected void resetRetriesSameServiceInstance()
ServiceInstance.protected Integer getRetriesNextServiceInstance()
ServiceInstance.protected void incrementRetriesNextServiceInstance()
ServiceInstance.protected Integer getResponseStatusCode()
ClientResponse returned for load-balanced
request.protected org.springframework.http.HttpMethod getRequestMethod()
HttpMethod of the ClientRequest that is being
load-balanced.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.