Package growthbook.sdk.java.retry
Class FeatureFetchRetryExecutor
java.lang.Object
growthbook.sdk.java.retry.FeatureFetchRetryExecutor
Executes feature fetch attempts with a bounded retry policy.
The executor only owns retry timing and retryability decisions. It does not decide how callers should recover after all attempts fail; repositories keep that responsibility so they can return existing or cached feature data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceUnit of feature fetch work that can be retried by this executor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(FeatureFetchRetryExecutor.FeatureFetchAttempt fetchAttempt) Runs the fetch attempt until it succeeds or retry attempts are exhausted.
-
Constructor Details
-
FeatureFetchRetryExecutor
-
-
Method Details
-
execute
public Optional<FeatureFetchException> execute(FeatureFetchRetryExecutor.FeatureFetchAttempt fetchAttempt) Runs the fetch attempt until it succeeds or retry attempts are exhausted.- Returns:
- empty when the attempt succeeds; otherwise the last fetch failure
-