public class LoadBalancedRetryContext
extends org.springframework.retry.context.RetryContextSupport
RetryContext
for load balanced retries.Constructor and Description |
---|
LoadBalancedRetryContext(org.springframework.retry.RetryContext parent,
org.springframework.http.HttpRequest request)
Creates a new load balanced context.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.HttpRequest |
getRequest()
Gets the request that is being load balanced.
|
ServiceInstance |
getServiceInstance()
Gets the service instance used during the retry.
|
void |
setRequest(org.springframework.http.HttpRequest request)
Sets the request that is being load baalnced.
|
void |
setServiceInstance(ServiceInstance serviceInstance)
Sets the service instance to use during the retry.
|
getLastThrowable, getParent, getRetryCount, isExhaustedOnly, registerThrowable, setExhaustedOnly, toString
attributeNames, copyAttributesFrom, equals, getAttribute, hasAttribute, hashCode, removeAttribute, setAttribute
public LoadBalancedRetryContext(org.springframework.retry.RetryContext parent, org.springframework.http.HttpRequest request)
parent
- the parent contextrequest
- the request that is being load balancedpublic org.springframework.http.HttpRequest getRequest()
public void setRequest(org.springframework.http.HttpRequest request)
request
- the request to load balancedpublic ServiceInstance getServiceInstance()
public void setServiceInstance(ServiceInstance serviceInstance)
serviceInstance
- the service instance to use during the retryCopyright © 2018 Pivotal Software, Inc.. All rights reserved.