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.FeatureEnvironmentCollection>getFeatureStates(@NotNull java.util.List<java.lang.String> sdkUrl)Requests all features for this sdkurl and disconnectsvoidsetFeatureState(java.lang.String apiKey, @NotNull java.lang.String featureKey, @NotNull io.featurehub.sse.model.FeatureStateUpdate featureStateUpdate)Updates the feature state if allowed.
-
-
-
Method Detail
-
getFeatureStates
public java.util.List<io.featurehub.sse.model.FeatureEnvironmentCollection> 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- A list of API keys to retrieve information about (required)- Returns:
- List<FeatureEnvironmentCollection>
-
setFeatureState
public void setFeatureState(java.lang.String apiKey, @NotNull @NotNull java.lang.String featureKey, @NotNull @NotNull 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 API Key for the environment and service account (required)featureKey- The key you wish to update/action (required)featureStateUpdate- (required)
-
-