Uses of Record Class
cloud.opencode.base.feature.Feature
Packages that use Feature
Package
Description
-
Uses of Feature in cloud.opencode.base.feature
Methods in cloud.opencode.base.feature that return FeatureModifier and TypeMethodDescriptionFeature.Builder.build()Build the feature 构建功能OpenFeature.getOrThrow(String key) Get a feature or throw if not found 获取功能,如果未找到则抛出异常Feature.withExpiresAt(Instant newExpiresAt) Create a copy with updated expiration time 创建具有更新过期时间的副本Create a copy with updated group 创建具有更新分组的副本Feature.withLifecycle(FeatureLifecycle newLifecycle) Create a copy with updated lifecycle 创建具有更新生命周期的副本Feature.withStrategy(EnableStrategy newStrategy) Create a copy with updated strategy 创建具有更新策略的副本Methods in cloud.opencode.base.feature that return types with arguments of type FeatureModifier and TypeMethodDescriptionFeatureSnapshot.features()Returns the value of thefeaturesrecord component.Get a feature by key 根据键获取功能OpenFeature.getAll()Get all features 获取所有功能OpenFeature.getByGroup(String group) Get all features in a group 获取组中的所有功能Methods in cloud.opencode.base.feature with parameters of type FeatureModifier and TypeMethodDescriptionvoidRegister a feature 注册功能voidOpenFeature.registerAll(Feature... features) Register multiple features 注册多个功能Constructor parameters in cloud.opencode.base.feature with type arguments of type FeatureModifierConstructorDescriptionFeatureSnapshot(Map<String, Feature> features, Instant timestamp) Compact constructor with validation 带验证的紧凑构造函数 -
Uses of Feature in cloud.opencode.base.feature.security
Methods in cloud.opencode.base.feature.security that return types with arguments of type FeatureModifier and TypeMethodDescriptionGet a feature (no permission required) 获取功能(无需权限)Methods in cloud.opencode.base.feature.security with parameters of type Feature -
Uses of Feature in cloud.opencode.base.feature.store
Methods in cloud.opencode.base.feature.store that return types with arguments of type FeatureModifier and TypeMethodDescriptionFind a feature by key 根据键查找功能CachedFeatureStore.findAll()FeatureStore.findAll()Find all features 查找所有功能FileFeatureStore.findAll()InMemoryFeatureStore.findAll()LruFeatureStore.findAll()RedisFeatureStore.findAll()Methods in cloud.opencode.base.feature.store with parameters of type FeatureModifier and TypeMethodDescriptionvoidvoidSave a feature 保存功能voidvoidvoidvoidConstructor parameters in cloud.opencode.base.feature.store with type arguments of type FeatureModifierConstructorDescriptionRedisFeatureStore(String keyPrefix, Duration ttl, BiConsumer<String, Feature> setter, Function<String, Feature> getter, Supplier<List<Feature>> listAll, Function<String, Boolean> deleter, Runnable clearer) Create Redis store with custom operations 使用自定义操作创建Redis存储RedisFeatureStore(String keyPrefix, Duration ttl, BiConsumer<String, Feature> setter, Function<String, Feature> getter, Supplier<List<Feature>> listAll, Function<String, Boolean> deleter, Runnable clearer) Create Redis store with custom operations 使用自定义操作创建Redis存储RedisFeatureStore(String keyPrefix, Duration ttl, BiConsumer<String, Feature> setter, Function<String, Feature> getter, Supplier<List<Feature>> listAll, Function<String, Boolean> deleter, Runnable clearer) Create Redis store with custom operations 使用自定义操作创建Redis存储 -
Uses of Feature in cloud.opencode.base.feature.strategy
Methods in cloud.opencode.base.feature.strategy with parameters of type FeatureModifier and TypeMethodDescriptionbooleanAlwaysOffStrategy.isEnabled(Feature feature, FeatureContext context) Always returns false 始终返回falsebooleanAlwaysOnStrategy.isEnabled(Feature feature, FeatureContext context) Always returns true 始终返回truebooleanCompositeStrategy.isEnabled(Feature feature, FeatureContext context) Evaluate all strategies with AND/OR logic 使用AND/OR逻辑评估所有策略booleanConsistentPercentageStrategy.isEnabled(Feature feature, FeatureContext context) Check if enabled using consistent hash 使用一致性哈希检查是否启用booleanDateRangeStrategy.isEnabled(Feature feature, FeatureContext context) Check if current time is within the date range 检查当前时间是否在日期范围内booleanEnableStrategy.isEnabled(Feature feature, FeatureContext context) Determine if the feature is enabled for the given context 确定功能对于给定上下文是否启用booleanEnvironmentStrategy.isEnabled(Feature feature, FeatureContext context) Evaluate if the feature is enabled for the current environment 评估功能是否在当前环境中启用booleanExpressionStrategy.isEnabled(Feature feature, FeatureContext context) booleanPercentageStrategy.isEnabled(Feature feature, FeatureContext context) Check if enabled based on percentage 基于百分比检查是否启用booleanTenantAwareStrategy.isEnabled(Feature feature, FeatureContext context) Check if enabled for tenant 检查是否对租户启用booleanUserListStrategy.isEnabled(Feature feature, FeatureContext context) Check if user is in the allowed list 检查用户是否在允许列表中 -
Uses of Feature in cloud.opencode.base.feature.testing
Methods in cloud.opencode.base.feature.testing with parameters of type FeatureModifier and TypeMethodDescriptionTestFeatureManager.withFeature(Feature feature) Register a feature with full definition 使用完整定义注册功能