Class FeatureServiceImpl

  • All Implemented Interfaces:
    io.featurehub.sse.api.FeatureService

    public class FeatureServiceImpl
    extends java.lang.Object
    implements io.featurehub.sse.api.FeatureService
    • Field Summary

      • Fields inherited from interface io.featurehub.sse.api.FeatureService

        DEFAULT_SERVICE_URL
    • 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 disconnects
      java.lang.Object setFeatureState​(java.lang.String apiKey, java.lang.String featureKey, 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.Environment> 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 - 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.FeatureService
        Updates the feature state if allowed.
        Specified by:
        setFeatureState in interface io.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