Package growthbook.sdk.java.featurefetch
Class FeatureFetchFailureHandler
java.lang.Object
growthbook.sdk.java.featurefetch.FeatureFetchFailureHandler
Applies the shared failure behavior after feature fetch retries are exhausted.
Repositories provide the concrete cache loading and callback hooks. This helper only coordinates the common sequence: notify failure, try cache if no feature data is available, and throw only when no usable data remains.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandle(FeatureFetchException failure, Consumer<Throwable> refreshFailureCallback, BooleanSupplier hasFeatureData, BooleanSupplier loadCachedFeatures)
-
Method Details
-
handle
public static void handle(FeatureFetchException failure, Consumer<Throwable> refreshFailureCallback, BooleanSupplier hasFeatureData, BooleanSupplier loadCachedFeatures) throws FeatureFetchException - Throws:
FeatureFetchException
-