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 ofRecoveryCallback
which relies on an implementation ofRetryableStatusCodeException
to contain the last response object from the request.- Author:
- LiYuan Lee
-
-
Constructor Summary
Constructors Constructor Description LoadBalancedRecoveryCallback()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
createResponse(R response, URI uri)
Creates the response returned in theRecoveryCallback
.T
recover(org.springframework.retry.RetryContext context)
-