本文整理了Java中org.ff4j.core.Feature.disable()
方法的一些代码示例,展示了Feature.disable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.disable()
方法的具体详情如下:
包路径:org.ff4j.core.Feature
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!