All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.featurehub.client.FeatureState Maven / Gradle / Ivy

package io.featurehub.client;

import java.math.BigDecimal;

public interface FeatureState {
  String getKey();

  String getString();

  Boolean getBoolean();

  BigDecimal getNumber();

  String getRawJson();

   T getJson(Class type);

  /**
   * true if the flag is boolean and is true
  */
  boolean isEnabled();

  boolean isSet();

  boolean isLocked();

  /**
   * Adds a listener to a feature. Do *not* add a listener to a context in server mode, where you are creating
   * lots of contexts as this will lead to a memory leak.
   * @param listener
   */
  void addListener(FeatureListener listener);

  FeatureState withContext(ClientContext ctx);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy