Package com.couchbase.client.core.retry
Interface RetryStrategy
-
- All Known Implementing Classes:
BestEffortRetryStrategy
,FailFastRetryStrategy
public interface RetryStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<RetryAction>
shouldRetry(Request<? extends Response> request, RetryReason reason)
Checks if the given request should be retried and how long the retry delay should be.
-
-
-
Method Detail
-
shouldRetry
CompletableFuture<RetryAction> shouldRetry(Request<? extends Response> request, RetryReason reason)
Checks if the given request should be retried and how long the retry delay should be.- Parameters:
request
- the request to be checked.- Returns:
- If empty, no retry should be done. If a duration is returned it determines the retry delay.
-
-