Package io.getunleash.repository
Class OkHttpFeatureFetcher
- java.lang.Object
-
- io.getunleash.repository.OkHttpFeatureFetcher
-
- All Implemented Interfaces:
FeatureFetcher
public class OkHttpFeatureFetcher extends Object implements FeatureFetcher
-
-
Constructor Summary
Constructors Constructor Description OkHttpFeatureFetcher(UnleashConfig unleashConfig)OkHttpFeatureFetcher(UnleashConfig unleashConfig, okhttp3.OkHttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientFeaturesResponsefetchFeatures()
-
-
-
Constructor Detail
-
OkHttpFeatureFetcher
public OkHttpFeatureFetcher(UnleashConfig unleashConfig)
-
OkHttpFeatureFetcher
public OkHttpFeatureFetcher(UnleashConfig unleashConfig, okhttp3.OkHttpClient client)
-
-
Method Detail
-
fetchFeatures
public ClientFeaturesResponse fetchFeatures() throws UnleashException
- Specified by:
fetchFeaturesin interfaceFeatureFetcher- Throws:
UnleashException
-
-