T - the response type@FunctionalInterface public interface RetryStrategyWithContent<T extends Response>
Response.
If you just need the headers to make a decision, use RetryStrategy for efficiency.| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Backoff> |
shouldRetry(ClientRequestContext ctx,
T response)
Tells whether the request sent with the specified
ClientRequestContext requires a retry or not. |
CompletionStage<Backoff> shouldRetry(ClientRequestContext ctx, T response)
ClientRequestContext requires a retry or not.
Implement this method to return a CompletionStage and to complete it with a desired
Backoff. To stop trying further, complete it with null.ctx - the ClientRequestContext of this requestresponse - the Response from the serverCopyright © 2020 LeanCloud. All rights reserved.