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 ofRecoveryCallbackwhich relies on an implementation ofRetryableStatusCodeExceptionto 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 TcreateResponse(R response, URI uri)Creates the response returned in theRecoveryCallback.Trecover(org.springframework.retry.RetryContext context)
-