Package growthbook.sdk.java.repository
Class LocalGbFeatureRepository
java.lang.Object
growthbook.sdk.java.repository.LocalGbFeatureRepository
- All Implemented Interfaces:
IGBFeaturesRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Can be ignored for this implementationMethod for getting the featuresJson in format of String from user json filevoid
Method for initializingLocalGbFeatureRepository
by fetching features from user's json filevoid
initialize
(Boolean retryOnFailure) Can be ignored for this implementationvoid
onFeaturesRefresh
(FeatureRefreshCallback callback) Can be ignored for this implementation
-
Constructor Details
-
LocalGbFeatureRepository
-
-
Method Details
-
initialize
Method for initializingLocalGbFeatureRepository
by fetching features from user's json file- Specified by:
initialize
in interfaceIGBFeaturesRepository
- Throws:
FeatureFetchException
- exception when FileNotFoundException occur
-
initialize
Can be ignored for this implementation- Specified by:
initialize
in interfaceIGBFeaturesRepository
-
getFeaturesJson
Method for getting the featuresJson in format of String from user json file- Specified by:
getFeaturesJson
in interfaceIGBFeaturesRepository
- Returns:
- featuresJson
-
onFeaturesRefresh
Can be ignored for this implementation- Specified by:
onFeaturesRefresh
in interfaceIGBFeaturesRepository
-
clearCallbacks
public void clearCallbacks()Can be ignored for this implementation- Specified by:
clearCallbacks
in interfaceIGBFeaturesRepository
-