Package io.featurehub.client.jersey
Class FeatureServiceImpl
- java.lang.Object
-
- io.featurehub.client.jersey.FeatureServiceImpl
-
- All Implemented Interfaces:
io.featurehub.sse.api.FeatureService
public class FeatureServiceImpl extends java.lang.Object implements io.featurehub.sse.api.FeatureService
-
-
Constructor Summary
Constructors Constructor Description FeatureServiceImpl(cd.connect.openapi.support.ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<io.featurehub.sse.model.Environment>getFeatureStates(@NotNull java.util.List<java.lang.String> sdkUrl)Requests all features for this sdkurl and disconnectsjava.lang.ObjectsetFeatureState(java.lang.String apiKey, java.lang.String featureKey, io.featurehub.sse.model.FeatureStateUpdate featureStateUpdate)Updates the feature state if allowed.
-
-
-
Method Detail
-
getFeatureStates
public java.util.List<io.featurehub.sse.model.Environment> getFeatureStates(@NotNull @NotNull java.util.List<java.lang.String> sdkUrl)Description copied from interface:io.featurehub.sse.api.FeatureServiceRequests all features for this sdkurl and disconnects- Specified by:
getFeatureStatesin interfaceio.featurehub.sse.api.FeatureService- Parameters:
sdkUrl- The SDK urls (required)- Returns:
- List<Environment>
-
setFeatureState
public java.lang.Object setFeatureState(java.lang.String apiKey, java.lang.String featureKey, io.featurehub.sse.model.FeatureStateUpdate featureStateUpdate)Description copied from interface:io.featurehub.sse.api.FeatureServiceUpdates the feature state if allowed.- Specified by:
setFeatureStatein interfaceio.featurehub.sse.api.FeatureService- Parameters:
apiKey- The SDK key for the environment and service account (required)featureKey- The key you wish to update/action (required)featureStateUpdate- (required)- Returns:
- Object
-
-