org.ff4j.core.Feature.disable()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中org.ff4j.core.Feature.disable()方法的一些代码示例,展示了Feature.disable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.disable()方法的具体详情如下:
包路径:org.ff4j.core.Feature
类名称:Feature
方法名:disable

Feature.disable介绍

[英]Disable target feature
[中]禁用目标功能

代码示例

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */    
public void disable(String uid) {
  assertFeatureExist(uid);
  featuresMap.get(uid).disable();
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disableGroup(String groupName) {
  Map < String, Feature > features = readGroup(groupName);
  for (Map.Entry<String,Feature> uid : features.entrySet()) {
    uid.getValue().disable();
    update(uid.getValue());
  }
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disableGroup(String groupName) {
  Map < String, Feature > features = readGroup(groupName);
  for (Map.Entry<String,Feature> uid : features.entrySet()) {
    uid.getValue().disable();
    update(uid.getValue());
  }
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disableGroup(String groupName) {
  Map < String, Feature > features = readGroup(groupName);
  for (Map.Entry<String,Feature> uid : features.entrySet()) {
    uid.getValue().disable();
    update(uid.getValue());
  }
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disableGroup(String groupName) {
  Map < String, Feature > features = readGroup(groupName);
  for (Map.Entry<String,Feature> uid : features.entrySet()) {
    uid.getValue().disable();
    update(uid.getValue());
  }
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disable(String uid) {
  // Read from redis, feature not found if no present
  Feature f = read(uid);
  // Update within Object
  f.disable();
  // Serialization and update key, update TTL
  update(f);
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disable(String uid) {
  // Read from redis, feature not found if no present
  Feature f = read(uid);
  // Update within Object
  f.disable();
  // Serialization and update key, update TTL
  update(f);
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disable(String uid) {
  // Read from redis, feature not found if no present
  Feature f = read(uid);
  // Update within Object
  f.disable();
  // Serialization and update key, update TTL
  update(f);
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disable(String uid) {
  // Read from redis, feature not found if no present
  Feature f = read(uid);
  // Update within Object
  f.disable();
  // Serialization and update key, update TTL
  update(f);
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void disable(String uid) {
  assertFeatureExist(uid);
  Feature f1 = FEATURE_MAPPER.fromStore(getFeatureBucket().get(uid));
  f1.disable();
  update(f1);
}

相关文章