Interface StateRepository

    • Method Detail

      • getFeatureState

        FeatureState getFeatureState​(Feature feature)
        Get the persisted state of a feature from the repository. If the repository doesn't contain any information regarding this feature it must return null.
        Parameters:
        feature - The feature to read the state for
        Returns:
        The persisted feature state or null
      • setFeatureState

        void setFeatureState​(FeatureState featureState)
        Persist the supplied feature state. The repository implementation must ensure that subsequent calls to getFeatureState(Feature) return the same state as persisted using this method.
        Parameters:
        featureState - The feature state to persist
        Throws:
        UnsupportedOperationException - if this state repository does not support updates