Class LoadBalancedRecoveryCallback<T,R>
java.lang.Object
org.springframework.cloud.client.loadbalancer.LoadBalancedRecoveryCallback<T,R>
- Type Parameters:
T
- - response type to returnR
- - response type from the HTTP client
- All Implemented Interfaces:
org.springframework.retry.RecoveryCallback<T>
public abstract class LoadBalancedRecoveryCallback<T,R>
extends Object
implements org.springframework.retry.RecoveryCallback<T>
An implementation of
RecoveryCallback
which relies on an implementation of
RetryableStatusCodeException
to contain the last response object from the
request.- Author:
- LiYuan Lee
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LoadBalancedRecoveryCallback
public LoadBalancedRecoveryCallback()
-
-
Method Details
-
createResponse
Creates the response returned in theRecoveryCallback
.- Parameters:
response
- The response from the HTTP client.uri
- The URI the response is from.- Returns:
- The response to be returned.
-
recover
-