Class 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 disconnects
      void setFeatureState​(java.lang.String apiKey, @NotNull java.lang.String featureKey, @NotNull io.featurehub.sse.model.FeatureStateUpdate featureStateUpdate)
      Updates the feature state if allowed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FeatureServiceImpl

        public FeatureServiceImpl​(cd.connect.openapi.support.ApiClient apiClient)
    • 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.FeatureService
        Requests all features for this sdkurl and disconnects
        Specified by:
        getFeatureStates in interface io.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.FeatureService
        Updates the feature state if allowed.
        Specified by:
        setFeatureState in interface io.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)