Index

A B C D E F G H I K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

action() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Returns the value of the action record component.
ACTIVE - Enum constant in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Active and in use 活跃且在使用中
addListener(FeatureListener) - Method in class cloud.opencode.base.feature.OpenFeature
Add a listener 添加监听器
allOf(EnableStrategy...) - Static method in class cloud.opencode.base.feature.strategy.CompositeStrategy
Create AND composite (all strategies must pass) 创建AND组合(所有策略必须通过)
allOf(List) - Static method in class cloud.opencode.base.feature.strategy.CompositeStrategy
Create AND composite from list 从列表创建AND组合
ALREADY_EXISTS - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
alwaysOff() - Method in class cloud.opencode.base.feature.Feature.Builder
Set always off strategy 设置始终禁用策略
AlwaysOffStrategy - Class in cloud.opencode.base.feature.strategy
Always Off Strategy 始终禁用策略
alwaysOn() - Method in class cloud.opencode.base.feature.Feature.Builder
Set always on strategy 设置始终启用策略
AlwaysOnStrategy - Class in cloud.opencode.base.feature.strategy
Always On Strategy 始终启用策略
anyOf(EnableStrategy...) - Static method in class cloud.opencode.base.feature.strategy.CompositeStrategy
Create OR composite (any strategy must pass) 创建OR组合(任一策略通过即可)
anyOf(List) - Static method in class cloud.opencode.base.feature.strategy.CompositeStrategy
Create OR composite from list 从列表创建OR组合
ARCHIVED - Enum constant in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Archived, no longer available 已归档,不再可用
attribute(String, Object) - Method in class cloud.opencode.base.feature.FeatureContext.Builder
Add an attribute 添加属性
attributes() - Method in record class cloud.opencode.base.feature.FeatureContext
Returns the value of the attributes record component.
attributes(Map) - Method in class cloud.opencode.base.feature.FeatureContext.Builder
Add all attributes from a map 从映射添加所有属性
AUDIT_FAILED - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
AuditLogger - Interface in cloud.opencode.base.feature.security
Audit Logger Interface 审计日志接口

B

build() - Method in class cloud.opencode.base.feature.Feature.Builder
Build the feature 构建功能
build() - Method in class cloud.opencode.base.feature.FeatureContext.Builder
Build the context 构建上下文
build() - Method in class cloud.opencode.base.feature.proxy.FeatureProxy.Builder
Build the proxy 构建代理
build() - Method in class cloud.opencode.base.feature.proxy.VariantRouter.Builder
Build the router 构建路由器
build() - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy.Builder
Build the strategy 构建策略
builder() - Static method in record class cloud.opencode.base.feature.FeatureContext
Create a new builder 创建新的构建器
builder() - Static method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy
Create a new builder 创建新的构建器
builder(Class, T) - Static method in class cloud.opencode.base.feature.proxy.FeatureProxy
Create a builder for more configuration options 创建构建器以获得更多配置选项
builder(String) - Static method in record class cloud.opencode.base.feature.Feature
Create a builder for feature 创建功能构建器
builder(String) - Static method in class cloud.opencode.base.feature.proxy.VariantRouter
Create a builder for the router 创建路由器构建器
Builder() - Constructor for class cloud.opencode.base.feature.FeatureContext.Builder
 
Builder() - Constructor for class cloud.opencode.base.feature.strategy.EnvironmentStrategy.Builder
 
Builder(String) - Constructor for class cloud.opencode.base.feature.Feature.Builder
Create builder with key 使用键创建构建器

C

CachedFeatureStore - Class in cloud.opencode.base.feature.store
Cached Feature Store with Optional Cache Module Delegation 支持可选缓存模块委托的缓存功能存储
clear() - Method in class cloud.opencode.base.feature.OpenFeature
Clear all features 清空所有功能
clear() - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
 
clear() - Method in interface cloud.opencode.base.feature.store.FeatureStore
Clear all features 清除所有功能
clear() - Method in class cloud.opencode.base.feature.store.FileFeatureStore
 
clear() - Method in class cloud.opencode.base.feature.store.InMemoryFeatureStore
 
clear() - Method in class cloud.opencode.base.feature.store.LruFeatureStore
 
clear() - Method in class cloud.opencode.base.feature.store.RedisFeatureStore
 
close() - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Close and clear all features 关闭并清除所有功能
cloud.opencode.base.feature - module cloud.opencode.base.feature
OpenCode Base Feature Module OpenCode 基础特性开关模块
cloud.opencode.base.feature - package cloud.opencode.base.feature
 
cloud.opencode.base.feature.annotation - package cloud.opencode.base.feature.annotation
 
cloud.opencode.base.feature.audit - package cloud.opencode.base.feature.audit
 
cloud.opencode.base.feature.exception - package cloud.opencode.base.feature.exception
 
cloud.opencode.base.feature.lifecycle - package cloud.opencode.base.feature.lifecycle
 
cloud.opencode.base.feature.listener - package cloud.opencode.base.feature.listener
 
cloud.opencode.base.feature.proxy - package cloud.opencode.base.feature.proxy
 
cloud.opencode.base.feature.security - package cloud.opencode.base.feature.security
 
cloud.opencode.base.feature.store - package cloud.opencode.base.feature.store
 
cloud.opencode.base.feature.strategy - package cloud.opencode.base.feature.strategy
 
cloud.opencode.base.feature.testing - package cloud.opencode.base.feature.testing
 
CompositeStrategy - Class in cloud.opencode.base.feature.strategy
Composite Strategy 组合策略
CompositeStrategy(List, boolean) - Constructor for class cloud.opencode.base.feature.strategy.CompositeStrategy
Create composite strategy 创建组合策略
ConsistentPercentageStrategy - Class in cloud.opencode.base.feature.strategy
Consistent Percentage Strategy 一致性哈希百分比策略
ConsistentPercentageStrategy(int) - Constructor for class cloud.opencode.base.feature.strategy.ConsistentPercentageStrategy
Create with default empty salt 使用默认空盐创建
ConsistentPercentageStrategy(int, String) - Constructor for class cloud.opencode.base.feature.strategy.ConsistentPercentageStrategy
Create consistent percentage strategy 创建一致性百分比策略
contains(String) - Method in record class cloud.opencode.base.feature.FeatureGroup
Check if this group contains the given feature key 检查此组是否包含给定的功能键
contains(String) - Method in record class cloud.opencode.base.feature.FeatureSnapshot
Check if this snapshot contains a feature with the given key 检查此快照是否包含具有给定键的功能
contextSupplier(Supplier) - Method in class cloud.opencode.base.feature.proxy.FeatureProxy.Builder
Set the context supplier for dynamic context 设置动态上下文的上下文供应器
count() - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
 
count() - Method in interface cloud.opencode.base.feature.store.FeatureStore
Get the count of features 获取功能数量
count() - Method in class cloud.opencode.base.feature.store.InMemoryFeatureStore
 
count() - Method in class cloud.opencode.base.feature.store.LruFeatureStore
 
create(FeatureStore) - Static method in class cloud.opencode.base.feature.OpenFeature
Create new instance with custom store (for testing or custom usage) 使用自定义存储创建新实例(用于测试或自定义用途)
create(Class, T) - Static method in class cloud.opencode.base.feature.proxy.FeatureProxy
Create a feature-gated proxy for an interface 为接口创建功能门控代理
create(Class, T, OpenFeature) - Static method in class cloud.opencode.base.feature.proxy.FeatureProxy
Create a feature-gated proxy with custom OpenFeature instance 使用自定义OpenFeature实例创建功能门控代理
CREATED - Enum constant in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Newly created, not yet active 新创建,尚未激活
createdAt() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the createdAt record component.

D

DateRangeStrategy - Class in cloud.opencode.base.feature.strategy
Date Range Strategy 日期范围策略
DateRangeStrategy(Instant, Instant) - Constructor for class cloud.opencode.base.feature.strategy.DateRangeStrategy
Create date range strategy 创建日期范围策略
defaultEnabled() - Element in annotation interface cloud.opencode.base.feature.annotation.FeatureToggle
Default enabled state when feature is not found 功能未找到时的默认启用状态
defaultEnabled() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the defaultEnabled record component.
defaultEnabled(boolean) - Method in class cloud.opencode.base.feature.Feature.Builder
Set default enabled state 设置默认启用状态
defaultState(boolean) - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy.Builder
Set default state for unrecognized environments 设置未识别环境的默认状态
defaultVariant(String) - Method in class cloud.opencode.base.feature.proxy.VariantRouter.Builder
Set the default variant 设置默认变体
delete(String) - Method in class cloud.opencode.base.feature.OpenFeature
Delete a feature 删除功能
delete(String) - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
 
delete(String) - Method in interface cloud.opencode.base.feature.store.FeatureStore
Delete a feature 删除功能
delete(String) - Method in class cloud.opencode.base.feature.store.FileFeatureStore
 
delete(String) - Method in class cloud.opencode.base.feature.store.InMemoryFeatureStore
 
delete(String) - Method in class cloud.opencode.base.feature.store.LruFeatureStore
 
delete(String) - Method in class cloud.opencode.base.feature.store.RedisFeatureStore
 
DEPRECATED - Enum constant in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Deprecated, should not be used 已弃用,不应使用
description() - Element in annotation interface cloud.opencode.base.feature.annotation.FeatureToggle
Description of the feature 功能描述
description() - Element in annotation interface cloud.opencode.base.feature.annotation.FeatureVariant
Description of the variant 变体描述
description() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the description record component.
description() - Method in record class cloud.opencode.base.feature.FeatureGroup
Returns the value of the description record component.
description(String) - Method in class cloud.opencode.base.feature.Feature.Builder
Set description 设置描述
dev(boolean) - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy.Builder
Set state for dev environment 设置开发环境的状态
disable(String) - Method in class cloud.opencode.base.feature.OpenFeature
Disable a feature 禁用功能
disable(String) - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Disable a feature, registering it if it does not exist 禁用功能,如果不存在则注册
disable(String, String) - Method in class cloud.opencode.base.feature.security.SecureFeatureManager
Disable a feature (requires admin) 禁用功能(需要管理员)
disableAll() - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Disable all registered features 禁用所有已注册的功能
disableGroup(String) - Method in class cloud.opencode.base.feature.OpenFeature
Disable all features in a group 禁用组中的所有功能

E

empty() - Static method in record class cloud.opencode.base.feature.FeatureContext
Create an empty context 创建空上下文
enable(String) - Method in class cloud.opencode.base.feature.OpenFeature
Enable a feature 启用功能
enable(String) - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Enable a feature, registering it if it does not exist 启用功能,如果不存在则注册
enable(String, String) - Method in class cloud.opencode.base.feature.security.SecureFeatureManager
Enable a feature (requires admin) 启用功能(需要管理员)
enableAll() - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Enable all registered features 启用所有已注册的功能
enableGroup(String) - Method in class cloud.opencode.base.feature.OpenFeature
Enable all features in a group 启用组中的所有功能
EnableStrategy - Interface in cloud.opencode.base.feature.strategy
Enable Strategy Interface 启用策略接口
environment(String, boolean) - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy.Builder
Set state for a specific environment 设置特定环境的状态
EnvironmentStrategy - Class in cloud.opencode.base.feature.strategy
Environment-Based Enable Strategy 基于环境的启用策略
EnvironmentStrategy.Builder - Class in cloud.opencode.base.feature.strategy
Builder for EnvironmentStrategy EnvironmentStrategy构建器
equals(Object) - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.feature.Feature
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.feature.FeatureContext
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.feature.FeatureGroup
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class cloud.opencode.base.feature.FeatureSnapshot
Indicates whether some other object is "equal to" this one.
execute(FeatureContext, Function) - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Execute action on selected variant 在选择的变体上执行操作
executeVoid(FeatureContext, Consumer) - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Execute void action on selected variant 在选择的变体上执行无返回值操作
exists(String) - Method in class cloud.opencode.base.feature.OpenFeature
Check if a feature exists 检查功能是否存在
exists(String) - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
 
exists(String) - Method in interface cloud.opencode.base.feature.store.FeatureStore
Check if a feature exists 检查功能是否存在
exists(String) - Method in class cloud.opencode.base.feature.store.InMemoryFeatureStore
 
exists(String) - Method in class cloud.opencode.base.feature.store.LruFeatureStore
 
EXPIRED - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
expiresAfter(Duration) - Method in class cloud.opencode.base.feature.Feature.Builder
Set expiration as a duration from now 设置从现在开始的过期持续时间
expiresAt() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the expiresAt record component.
expiresAt(Instant) - Method in class cloud.opencode.base.feature.Feature.Builder
Set expiration time 设置过期时间
ExpressionStrategy - Class in cloud.opencode.base.feature.strategy
Expression-based Enable Strategy with Optional Expression Module Delegation 支持可选表达式模块委托的基于表达式的启用策略

F

feature() - Element in annotation interface cloud.opencode.base.feature.annotation.FeatureVariant
Feature key 功能键
Feature - Record Class in cloud.opencode.base.feature
Feature Definition 功能定义
Feature(String, String, String, boolean, EnableStrategy, Map, String, Instant, FeatureLifecycle, Instant, Instant) - Constructor for record class cloud.opencode.base.feature.Feature
Compact constructor with validation and defensive copy 带验证和防御性复制的紧凑构造函数
Feature.Builder - Class in cloud.opencode.base.feature
Builder for Feature Feature构建器
FeatureAuditEvent - Record Class in cloud.opencode.base.feature.audit
Feature Audit Event 功能审计事件
FeatureAuditEvent(String, String, String, boolean, boolean, Instant) - Constructor for record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Creates an instance of a FeatureAuditEvent record class.
FeatureConfigException - Exception Class in cloud.opencode.base.feature.exception
Feature Config Exception 功能配置异常
FeatureConfigException(String) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureConfigException
Create config exception with message 使用消息创建配置异常
FeatureConfigException(String, FeatureErrorCode) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureConfigException
Create config exception with message and error code 使用消息和错误码创建配置异常
FeatureConfigException(String, Throwable) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureConfigException
Create config exception with message and cause 使用消息和原因创建配置异常
FeatureContext - Record Class in cloud.opencode.base.feature
Feature Context 功能上下文
FeatureContext(String, String, Map) - Constructor for record class cloud.opencode.base.feature.FeatureContext
Creates an instance of a FeatureContext record class.
FeatureContext.Builder - Class in cloud.opencode.base.feature
Builder for FeatureContext FeatureContext构建器
FeatureDisabledException(String, String) - Constructor for exception class cloud.opencode.base.feature.proxy.FeatureProxy.FeatureDisabledException
 
FeatureErrorCode - Enum Class in cloud.opencode.base.feature.exception
Feature Error Code 功能错误码
FeatureException - Exception Class in cloud.opencode.base.feature.exception
Feature Exception Base Class 功能异常基类
FeatureException(String) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureException
Create exception with message 使用消息创建异常
FeatureException(String, FeatureErrorCode) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureException
Create exception with message and error code 使用消息和错误码创建异常
FeatureException(String, Throwable) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureException
Create exception with message and cause 使用消息和原因创建异常
FeatureException(String, Throwable, String, FeatureErrorCode) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureException
Create exception with all parameters 使用所有参数创建异常
FeatureExpiredException - Exception Class in cloud.opencode.base.feature.exception
Feature Expired Exception 功能过期异常
FeatureExpiredException(String) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureExpiredException
Create exception for expired feature 为过期功能创建异常
FeatureGroup - Record Class in cloud.opencode.base.feature
Feature Group 功能组
FeatureGroup(String, String, Set) - Constructor for record class cloud.opencode.base.feature.FeatureGroup
Compact constructor with validation 带验证的紧凑构造函数
featureKey() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Returns the value of the featureKey record component.
featureKeys() - Method in record class cloud.opencode.base.feature.FeatureGroup
Returns the value of the featureKeys record component.
FeatureLifecycle - Enum Class in cloud.opencode.base.feature.lifecycle
Feature Lifecycle State 功能生命周期状态
FeatureListener - Interface in cloud.opencode.base.feature.listener
Feature Listener Interface 功能监听器接口
FeatureNotFoundException - Exception Class in cloud.opencode.base.feature.exception
Feature Not Found Exception 功能不存在异常
FeatureNotFoundException(String) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureNotFoundException
Create exception for feature key 为功能键创建异常
FeatureProxy - Class in cloud.opencode.base.feature.proxy
Feature Proxy 功能代理
FeatureProxy.Builder<T> - Class in cloud.opencode.base.feature.proxy
Builder for FeatureProxy FeatureProxy构建器
FeatureProxy.DisabledBehavior - Enum Class in cloud.opencode.base.feature.proxy
Behavior when feature is disabled 功能禁用时的行为
FeatureProxy.FeatureDisabledException - Exception Class in cloud.opencode.base.feature.proxy
Exception thrown when feature is disabled and THROW_EXCEPTION behavior is set 当功能禁用且设置了THROW_EXCEPTION行为时抛出的异常
features() - Method in record class cloud.opencode.base.feature.FeatureSnapshot
Returns the value of the features record component.
features(OpenFeature) - Method in class cloud.opencode.base.feature.proxy.FeatureProxy.Builder
Set the OpenFeature instance 设置OpenFeature实例
FeatureSecurityException - Exception Class in cloud.opencode.base.feature.exception
Feature Security Exception 功能安全异常
FeatureSecurityException(String) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureSecurityException
Create security exception with message 使用消息创建安全异常
FeatureSecurityException(String, FeatureErrorCode) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureSecurityException
Create security exception with message and error code 使用消息和错误码创建安全异常
FeatureSecurityException(String, Throwable) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureSecurityException
Create security exception with message and cause 使用消息和原因创建安全异常
FeatureSnapshot - Record Class in cloud.opencode.base.feature
Feature Snapshot 功能快照
FeatureSnapshot(Map, Instant) - Constructor for record class cloud.opencode.base.feature.FeatureSnapshot
Compact constructor with validation 带验证的紧凑构造函数
FeatureStore - Interface in cloud.opencode.base.feature.store
Feature Store Interface 功能存储接口
FeatureStoreException - Exception Class in cloud.opencode.base.feature.exception
Feature Store Exception 功能存储异常
FeatureStoreException(String) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureStoreException
Create store exception with message 使用消息创建存储异常
FeatureStoreException(String, Throwable) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureStoreException
Create store exception with message and cause 使用消息和原因创建存储异常
FeatureStoreException(String, Throwable, String, FeatureErrorCode) - Constructor for exception class cloud.opencode.base.feature.exception.FeatureStoreException
Create store exception with all parameters 使用所有参数创建存储异常
FeatureToggle - Annotation Interface in cloud.opencode.base.feature.annotation
Feature Toggle Annotation 功能开关注解
FeatureVariant - Annotation Interface in cloud.opencode.base.feature.annotation
Feature Variant Annotation 功能变体注解
FileAuditLogger - Class in cloud.opencode.base.feature.audit
File Audit Logger 文件审计日志记录器
FileAuditLogger(Path) - Constructor for class cloud.opencode.base.feature.audit.FileAuditLogger
Create file audit logger 创建文件审计日志记录器
FileFeatureStore - Class in cloud.opencode.base.feature.store
File Feature Store 文件功能存储
FileFeatureStore(Path) - Constructor for class cloud.opencode.base.feature.store.FileFeatureStore
Create file store 创建文件存储
find(String) - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
 
find(String) - Method in interface cloud.opencode.base.feature.store.FeatureStore
Find a feature by key 根据键查找功能
find(String) - Method in class cloud.opencode.base.feature.store.FileFeatureStore
 
find(String) - Method in class cloud.opencode.base.feature.store.InMemoryFeatureStore
 
find(String) - Method in class cloud.opencode.base.feature.store.LruFeatureStore
 
find(String) - Method in class cloud.opencode.base.feature.store.RedisFeatureStore
 
findAll() - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
 
findAll() - Method in interface cloud.opencode.base.feature.store.FeatureStore
Find all features 查找所有功能
findAll() - Method in class cloud.opencode.base.feature.store.FileFeatureStore
 
findAll() - Method in class cloud.opencode.base.feature.store.InMemoryFeatureStore
 
findAll() - Method in class cloud.opencode.base.feature.store.LruFeatureStore
 
findAll() - Method in class cloud.opencode.base.feature.store.RedisFeatureStore
 
forUsers(String...) - Method in class cloud.opencode.base.feature.Feature.Builder
Set user list strategy 设置用户列表策略
forUsers(Set) - Method in class cloud.opencode.base.feature.Feature.Builder
Set user list strategy 设置用户列表策略
from(Instant) - Static method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Create strategy that starts at specified time and never ends 创建从指定时间开始永不结束的策略
fromAnnotations(String, T) - Static method in class cloud.opencode.base.feature.proxy.VariantRouter
Create router from annotated methods 从注解方法创建路由器

G

get(String) - Method in class cloud.opencode.base.feature.OpenFeature
Get a feature by key 根据键获取功能
get(String) - Method in class cloud.opencode.base.feature.security.SecureFeatureManager
Get a feature (no permission required) 获取功能(无需权限)
getAll() - Method in class cloud.opencode.base.feature.OpenFeature
Get all features 获取所有功能
getAllDisableCounts() - Method in class cloud.opencode.base.feature.audit.MetricsFeatureListener
Get all disable counts 获取所有禁用计数
getAllEnableCounts() - Method in class cloud.opencode.base.feature.audit.MetricsFeatureListener
Get all enable counts 获取所有启用计数
getAllKeys() - Method in class cloud.opencode.base.feature.OpenFeature
Get all feature keys 获取所有功能键
getAllowedUsers() - Method in class cloud.opencode.base.feature.strategy.UserListStrategy
Get the set of allowed users 获取允许的用户集合
getAttribute(String) - Method in record class cloud.opencode.base.feature.FeatureContext
Get an attribute value 获取属性值
getAttribute(String, T) - Method in record class cloud.opencode.base.feature.FeatureContext
Get an attribute value with default 获取属性值,带默认值
getByGroup(String) - Method in class cloud.opencode.base.feature.OpenFeature
Get all features in a group 获取组中的所有功能
getCode() - Method in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
Get error code 获取错误码
getDefaultState() - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy
Get the default state 获取默认状态
getDelegate() - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
Gets the underlying delegate store.
getDelegate() - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Get the underlying OpenFeature delegate 获取底层OpenFeature委托
getDescription() - Method in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
Get description (code: message) 获取描述 (code: message)
getDescription() - Method in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Get the English description 获取英文描述
getDescriptionZh() - Method in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Get the Chinese description 获取中文描述
getDisableCount(String) - Method in class cloud.opencode.base.feature.audit.MetricsFeatureListener
Get disable count for a feature 获取功能的禁用次数
getEnableCount(String) - Method in class cloud.opencode.base.feature.audit.MetricsFeatureListener
Get enable count for a feature 获取功能的启用次数
getEndTime() - Method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Get end time 获取结束时间
getEnvironmentStates() - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy
Get the environment states map 获取环境状态映射
getExpression() - Method in class cloud.opencode.base.feature.strategy.ExpressionStrategy
Gets the expression string.
getFallbackStrategy() - Method in class cloud.opencode.base.feature.strategy.TenantAwareStrategy
Get fallback strategy 获取回退策略
getFallbackValue() - Method in class cloud.opencode.base.feature.strategy.ExpressionStrategy
Gets the fallback value.
getFeatureErrorCode() - Method in exception class cloud.opencode.base.feature.exception.FeatureException
Get the feature error code 获取功能错误码
getFeatureKey() - Method in exception class cloud.opencode.base.feature.exception.FeatureException
Get the feature key 获取功能键
getFeatureKey() - Method in exception class cloud.opencode.base.feature.proxy.FeatureProxy.FeatureDisabledException
 
getFeatureKey() - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Get the feature key 获取功能键
getFeatureKey() - Method in exception class cloud.opencode.base.feature.proxy.VariantRouter.NoVariantException
 
getFilePath() - Method in class cloud.opencode.base.feature.store.FileFeatureStore
Get the file path 获取文件路径
getInstance() - Static method in class cloud.opencode.base.feature.OpenFeature
Get singleton instance 获取单例实例
getKeyPrefix() - Method in class cloud.opencode.base.feature.store.RedisFeatureStore
Get the key prefix 获取键前缀
getLogFile() - Method in class cloud.opencode.base.feature.audit.FileAuditLogger
Get the log file path 获取日志文件路径
getMaxSize() - Method in class cloud.opencode.base.feature.store.LruFeatureStore
Get the maximum size 获取最大大小
getMessage() - Method in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
Get error message 获取错误消息
getMessageZh() - Method in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
Get Chinese error message 获取中文错误消息
getMetadata(String) - Method in record class cloud.opencode.base.feature.Feature
Get metadata value 获取元数据值
getMetadata(String, T) - Method in record class cloud.opencode.base.feature.Feature
Get metadata value with default 获取元数据值,带默认值
getMethodName() - Method in exception class cloud.opencode.base.feature.proxy.FeatureProxy.FeatureDisabledException
 
getMethodName() - Method in class cloud.opencode.base.feature.proxy.VariantRouter.MethodVariant
Get the method name 获取方法名
getOrThrow(String) - Method in class cloud.opencode.base.feature.OpenFeature
Get a feature or throw if not found 获取功能,如果未找到则抛出异常
getPercentage() - Method in class cloud.opencode.base.feature.strategy.ConsistentPercentageStrategy
Get the percentage 获取百分比
getPercentage() - Method in class cloud.opencode.base.feature.strategy.PercentageStrategy
Get the percentage value 获取百分比值
getSelectedVariantId(FeatureContext) - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Get the variant that would be selected for a context 获取将为上下文选择的变体ID
getStartTime() - Method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Get start time 获取开始时间
getStore() - Method in class cloud.opencode.base.feature.OpenFeature
Get the feature store 获取功能存储
getStrategies() - Method in class cloud.opencode.base.feature.strategy.CompositeStrategy
Get the strategies 获取策略列表
getTenantOverrides() - Method in class cloud.opencode.base.feature.strategy.TenantAwareStrategy
Get tenant overrides 获取租户覆盖
getTotalChanges() - Method in class cloud.opencode.base.feature.audit.MetricsFeatureListener
Get total number of changes 获取总变更数
getTtl() - Method in class cloud.opencode.base.feature.store.RedisFeatureStore
Get the TTL 获取TTL
getVariant(String) - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Get a specific variant by ID 根据ID获取特定变体
getVariantIds() - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Get all registered variant IDs 获取所有注册的变体ID
group() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the group record component.
group(String) - Method in class cloud.opencode.base.feature.Feature.Builder
Set feature group 设置功能组
GROUP_NOT_FOUND - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 

H

hasEnded() - Method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Check if the time window has ended 检查时间窗口是否已结束
hashCode() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.feature.Feature
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.feature.FeatureContext
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.feature.FeatureGroup
Returns a hash code value for this object.
hashCode() - Method in record class cloud.opencode.base.feature.FeatureSnapshot
Returns a hash code value for this object.
hasSalt() - Method in class cloud.opencode.base.feature.strategy.ConsistentPercentageStrategy
Check if salt is configured 检查是否配置了盐
hasStarted() - Method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Check if the time window has started 检查时间窗口是否已开始
hasTenantId() - Method in record class cloud.opencode.base.feature.FeatureContext
Check if context has tenant ID 检查上下文是否有租户ID
hasTenantOverride(String) - Method in class cloud.opencode.base.feature.strategy.TenantAwareStrategy
Check if tenant has explicit override 检查租户是否有显式覆盖
hasUserId() - Method in record class cloud.opencode.base.feature.FeatureContext
Check if context has user ID 检查上下文是否有用户ID

I

ifEnabled(String, FeatureContext, Runnable) - Method in class cloud.opencode.base.feature.OpenFeature
Execute action if feature is enabled with context 如果功能启用则执行操作(带上下文)
ifEnabled(String, FeatureContext, Supplier, Supplier) - Method in class cloud.opencode.base.feature.OpenFeature
Get value based on feature state with context 根据功能状态获取值(带上下文)
ifEnabled(String, Runnable) - Method in class cloud.opencode.base.feature.OpenFeature
Execute action if feature is enabled 如果功能启用则执行操作
ifEnabled(String, Supplier, Supplier) - Method in class cloud.opencode.base.feature.OpenFeature
Get value based on feature state 根据功能状态获取值
InMemoryFeatureStore - Class in cloud.opencode.base.feature.store
In-Memory Feature Store 内存功能存储
InMemoryFeatureStore() - Constructor for class cloud.opencode.base.feature.store.InMemoryFeatureStore
Create in-memory store 创建内存存储
INSTANCE - Static variable in class cloud.opencode.base.feature.strategy.AlwaysOffStrategy
Singleton instance 单例实例
INSTANCE - Static variable in class cloud.opencode.base.feature.strategy.AlwaysOnStrategy
Singleton instance 单例实例
INVALID_CONFIG - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
INVALID_CONTEXT - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
INVALID_KEY - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
INVALID_STRATEGY - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
invalidate(String) - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
Invalidates cache entry for a key.
invalidateAll() - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
Invalidates all cache entries.
invoke(Object...) - Method in class cloud.opencode.base.feature.proxy.VariantRouter.MethodVariant
Invoke the variant method 调用变体方法
isAdmin(String) - Method in class cloud.opencode.base.feature.security.SecureFeatureManager
Check if operator is admin 检查操作者是否为管理员
isCacheModuleAvailable() - Static method in class cloud.opencode.base.feature.store.CachedFeatureStore
Checks if the Cache module is available.
isEnabled() - Method in record class cloud.opencode.base.feature.Feature
Check if this feature is enabled with empty context 使用空上下文检查此功能是否启用
isEnabled(FeatureContext) - Method in record class cloud.opencode.base.feature.Feature
Check if this feature is enabled with context 使用上下文检查此功能是否启用
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.AlwaysOffStrategy
Always returns false 始终返回false
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.AlwaysOnStrategy
Always returns true 始终返回true
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.CompositeStrategy
Evaluate all strategies with AND/OR logic 使用AND/OR逻辑评估所有策略
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.ConsistentPercentageStrategy
Check if enabled using consistent hash 使用一致性哈希检查是否启用
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Check if current time is within the date range 检查当前时间是否在日期范围内
isEnabled(Feature, FeatureContext) - Method in interface cloud.opencode.base.feature.strategy.EnableStrategy
Determine if the feature is enabled for the given context 确定功能对于给定上下文是否启用
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy
Evaluate if the feature is enabled for the current environment 评估功能是否在当前环境中启用
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.ExpressionStrategy
 
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.PercentageStrategy
Check if enabled based on percentage 基于百分比检查是否启用
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.TenantAwareStrategy
Check if enabled for tenant 检查是否对租户启用
isEnabled(Feature, FeatureContext) - Method in class cloud.opencode.base.feature.strategy.UserListStrategy
Check if user is in the allowed list 检查用户是否在允许列表中
isEnabled(String) - Method in class cloud.opencode.base.feature.OpenFeature
Check if a feature is enabled 检查功能是否启用
isEnabled(String) - Method in class cloud.opencode.base.feature.security.SecureFeatureManager
Check if feature is enabled (no permission required) 检查功能是否启用(无需权限)
isEnabled(String) - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Check if a feature is enabled 检查功能是否启用
isEnabled(String, FeatureContext) - Method in class cloud.opencode.base.feature.OpenFeature
Check if a feature is enabled for a context 检查功能对上下文是否启用
isEnabled(String, FeatureContext) - Method in class cloud.opencode.base.feature.security.SecureFeatureManager
Check if feature is enabled for context (no permission required) 检查功能对上下文是否启用(无需权限)
isEnabled(String, FeatureContext) - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Check if a feature is enabled with context 使用上下文检查功能是否启用
isEnabledForUser(String, String) - Method in class cloud.opencode.base.feature.OpenFeature
Check if a feature is enabled for a specific user 检查功能对特定用户是否启用
isExpired() - Method in record class cloud.opencode.base.feature.Feature
Check if this feature has expired 检查此功能是否已过期
isExpressionModuleAvailable() - Static method in class cloud.opencode.base.feature.strategy.ExpressionStrategy
Checks if the Expression module is available.
isRequireAll() - Method in class cloud.opencode.base.feature.strategy.CompositeStrategy
Check if using AND logic 检查是否使用AND逻辑
isStateChanged() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Check if this event represents a state change 检查此事件是否表示状态更改
isUsable() - Method in record class cloud.opencode.base.feature.Feature
Check if this feature is usable based on its lifecycle state 根据生命周期状态检查此功能是否可用
isUsable() - Method in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Check if this lifecycle state allows feature usage 检查此生命周期状态是否允许使用功能
isUserAllowed(String) - Method in class cloud.opencode.base.feature.strategy.UserListStrategy
Check if a specific user is allowed 检查特定用户是否被允许
isUsingOpenCache() - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
Checks if this store is using OpenCache.
isValidExpression(String) - Static method in class cloud.opencode.base.feature.strategy.ExpressionStrategy
Checks if an expression is valid syntax.

K

key() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the key record component.

L

lifecycle() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the lifecycle record component.
lifecycle(FeatureLifecycle) - Method in class cloud.opencode.base.feature.Feature.Builder
Set lifecycle state 设置生命周期状态
LOAD_FAILED - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
log(FeatureAuditEvent) - Method in class cloud.opencode.base.feature.audit.FileAuditLogger
Log audit event to file 将审计事件记录到文件
log(FeatureAuditEvent) - Method in interface cloud.opencode.base.feature.security.AuditLogger
Log an audit event 记录审计事件
LruFeatureStore - Class in cloud.opencode.base.feature.store
LRU Feature Store LRU功能存储
LruFeatureStore(int) - Constructor for class cloud.opencode.base.feature.store.LruFeatureStore
Create LRU store with max size 创建具有最大大小的LRU存储

M

metadata() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the metadata record component.
metadata(String, Object) - Method in class cloud.opencode.base.feature.Feature.Builder
Add metadata entry 添加元数据条目
metadata(Map) - Method in class cloud.opencode.base.feature.Feature.Builder
Add all metadata from map 从映射添加所有元数据
MetricsFeatureListener - Class in cloud.opencode.base.feature.audit
Metrics Feature Listener 指标功能监听器
MetricsFeatureListener() - Constructor for class cloud.opencode.base.feature.audit.MetricsFeatureListener
 

N

name() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the name record component.
name() - Method in record class cloud.opencode.base.feature.FeatureGroup
Returns the value of the name record component.
name(String) - Method in class cloud.opencode.base.feature.Feature.Builder
Set display name 设置显示名称
newValue() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Returns the value of the newValue record component.
NOT_FOUND - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
NoVariantException(String) - Constructor for exception class cloud.opencode.base.feature.proxy.VariantRouter.NoVariantException
 

O

of(String) - Static method in class cloud.opencode.base.feature.strategy.ExpressionStrategy
Creates an expression strategy.
of(String, boolean) - Static method in class cloud.opencode.base.feature.strategy.ExpressionStrategy
Creates an expression strategy with a fallback value.
of(String, String) - Static method in record class cloud.opencode.base.feature.FeatureContext
Create a context with user and tenant 使用用户和租户创建上下文
of(LocalDateTime, LocalDateTime) - Static method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Create from LocalDateTime using system timezone 使用系统时区从LocalDateTime创建
of(LocalDateTime, LocalDateTime, ZoneId) - Static method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Create from LocalDateTime with specific timezone 使用特定时区从LocalDateTime创建
ofTenant(String) - Static method in record class cloud.opencode.base.feature.FeatureContext
Create a context with tenant ID only 仅使用租户ID创建上下文
ofUser(String) - Static method in record class cloud.opencode.base.feature.FeatureContext
Create a context with user ID only 仅使用用户ID创建上下文
oldValue() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Returns the value of the oldValue record component.
onFeatureChanged(String, boolean, boolean) - Method in class cloud.opencode.base.feature.audit.MetricsFeatureListener
 
onFeatureChanged(String, boolean, boolean) - Method in interface cloud.opencode.base.feature.listener.FeatureListener
Called when a feature's enabled state changes 当功能的启用状态改变时调用
OpenFeature - Class in cloud.opencode.base.feature
Open Feature 开放功能
operatorId() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Returns the value of the operatorId record component.

P

percentage() - Element in annotation interface cloud.opencode.base.feature.annotation.FeatureVariant
Percentage of traffic for this variant (0-100) 此变体的流量百分比(0-100)
percentage(int) - Method in class cloud.opencode.base.feature.Feature.Builder
Set percentage strategy 设置百分比策略
PercentageStrategy - Class in cloud.opencode.base.feature.strategy
Percentage Strategy 百分比策略
PercentageStrategy(int) - Constructor for class cloud.opencode.base.feature.strategy.PercentageStrategy
Create percentage strategy 创建百分比策略
PERSIST_FAILED - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
prod(boolean) - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy.Builder
Set state for prod environment 设置生产环境的状态

R

RedisFeatureStore - Class in cloud.opencode.base.feature.store
Redis Feature Store Redis功能存储
RedisFeatureStore(String, Duration, BiConsumer, Function, Supplier, Function, Runnable) - Constructor for class cloud.opencode.base.feature.store.RedisFeatureStore
Create Redis store with custom operations 使用自定义操作创建Redis存储
register(Feature) - Method in class cloud.opencode.base.feature.OpenFeature
Register a feature 注册功能
register(Feature, String) - Method in class cloud.opencode.base.feature.security.SecureFeatureManager
Register a feature (requires admin) 注册功能(需要管理员)
registerAll(Feature...) - Method in class cloud.opencode.base.feature.OpenFeature
Register multiple features 注册多个功能
reload() - Method in class cloud.opencode.base.feature.store.FileFeatureStore
Reload features from file 从文件重新加载功能
removeListener(FeatureListener) - Method in class cloud.opencode.base.feature.OpenFeature
Remove a listener 移除监听器
reset() - Method in class cloud.opencode.base.feature.audit.MetricsFeatureListener
Reset all metrics 重置所有指标
resetInstance() - Static method in class cloud.opencode.base.feature.OpenFeature
Reset singleton instance (for testing) 重置单例实例(用于测试)
restore(FeatureSnapshot) - Method in class cloud.opencode.base.feature.OpenFeature
Restore feature state from a snapshot 从快照恢复功能状态
RETURN_DEFAULT - Enum constant in enum class cloud.opencode.base.feature.proxy.FeatureProxy.DisabledBehavior
Return default value (null for objects, 0 for primitives, false for boolean) 返回默认值(对象为null,基本类型为0,布尔为false)
route() - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Route with empty context 使用空上下文路由
route(FeatureContext) - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Route to a variant based on context 根据上下文路由到变体
routeForUser(String) - Method in class cloud.opencode.base.feature.proxy.VariantRouter
Route for a specific user 为特定用户路由

S

salt(String) - Method in class cloud.opencode.base.feature.proxy.VariantRouter.Builder
Set salt for consistent hashing 设置一致性哈希的盐
save(Feature) - Method in class cloud.opencode.base.feature.store.CachedFeatureStore
 
save(Feature) - Method in interface cloud.opencode.base.feature.store.FeatureStore
Save a feature 保存功能
save(Feature) - Method in class cloud.opencode.base.feature.store.FileFeatureStore
 
save(Feature) - Method in class cloud.opencode.base.feature.store.InMemoryFeatureStore
 
save(Feature) - Method in class cloud.opencode.base.feature.store.LruFeatureStore
 
save(Feature) - Method in class cloud.opencode.base.feature.store.RedisFeatureStore
 
SecureFeatureManager - Class in cloud.opencode.base.feature.security
Secure Feature Manager 安全功能管理器
SecureFeatureManager(OpenFeature, Set, AuditLogger) - Constructor for class cloud.opencode.base.feature.security.SecureFeatureManager
Create with custom OpenFeature instance 使用自定义OpenFeature实例创建
SecureFeatureManager(Set, AuditLogger) - Constructor for class cloud.opencode.base.feature.security.SecureFeatureManager
Create secure feature manager 创建安全功能管理器
SECURITY_VIOLATION - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
setStore(FeatureStore) - Method in class cloud.opencode.base.feature.OpenFeature
Set the feature store 设置功能存储
size() - Method in record class cloud.opencode.base.feature.FeatureGroup
Get the number of features in this group 获取此组中的功能数量
size() - Method in record class cloud.opencode.base.feature.FeatureSnapshot
Get the number of features in this snapshot 获取此快照中的功能数量
size() - Method in class cloud.opencode.base.feature.OpenFeature
Get the feature count 获取功能数量
SKIP - Enum constant in enum class cloud.opencode.base.feature.proxy.FeatureProxy.DisabledBehavior
Skip method silently (same as RETURN_DEFAULT but clearer intent) 静默跳过方法(与RETURN_DEFAULT相同,但意图更清晰)
snapshot() - Method in class cloud.opencode.base.feature.OpenFeature
Create a snapshot of current feature state 创建当前功能状态的快照
staging(boolean) - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy.Builder
Set state for staging environment 设置预发布环境的状态
STORE_ERROR - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
strategy() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the strategy record component.
strategy(EnableStrategy) - Method in class cloud.opencode.base.feature.Feature.Builder
Set enable strategy 设置启用策略

T

TenantAwareStrategy - Class in cloud.opencode.base.feature.strategy
Tenant Aware Strategy 租户感知策略
TenantAwareStrategy(Map) - Constructor for class cloud.opencode.base.feature.strategy.TenantAwareStrategy
Create with default fallback (always off) 使用默认回退创建(始终禁用)
TenantAwareStrategy(Map, EnableStrategy) - Constructor for class cloud.opencode.base.feature.strategy.TenantAwareStrategy
Create tenant aware strategy 创建租户感知策略
tenantId() - Method in record class cloud.opencode.base.feature.FeatureContext
Returns the value of the tenantId record component.
tenantId(String) - Method in class cloud.opencode.base.feature.FeatureContext.Builder
Set tenant ID 设置租户ID
test(boolean) - Method in class cloud.opencode.base.feature.strategy.EnvironmentStrategy.Builder
Set state for test environment 设置测试环境的状态
TestFeatureManager - Class in cloud.opencode.base.feature.testing
Test Feature Manager 测试功能管理器
TestFeatureManager() - Constructor for class cloud.opencode.base.feature.testing.TestFeatureManager
Create a new test feature manager 创建新的测试功能管理器
THROW_EXCEPTION - Enum constant in enum class cloud.opencode.base.feature.proxy.FeatureProxy.DisabledBehavior
Throw FeatureDisabledException 抛出FeatureDisabledException
timestamp() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Returns the value of the timestamp record component.
timestamp() - Method in record class cloud.opencode.base.feature.FeatureSnapshot
Returns the value of the timestamp record component.
toLogString() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Format as log string 格式化为日志字符串
toString() - Method in record class cloud.opencode.base.feature.audit.FeatureAuditEvent
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.feature.Feature
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.feature.FeatureContext
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.feature.FeatureGroup
Returns a string representation of this record class.
toString() - Method in record class cloud.opencode.base.feature.FeatureSnapshot
Returns a string representation of this record class.
toString() - Method in class cloud.opencode.base.feature.strategy.AlwaysOffStrategy
 
toString() - Method in class cloud.opencode.base.feature.strategy.AlwaysOnStrategy
 
toString() - Method in class cloud.opencode.base.feature.strategy.CompositeStrategy
 
toString() - Method in class cloud.opencode.base.feature.strategy.ConsistentPercentageStrategy
 
toString() - Method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
 
toString() - Method in class cloud.opencode.base.feature.strategy.ExpressionStrategy
 
toString() - Method in class cloud.opencode.base.feature.strategy.PercentageStrategy
 
toString() - Method in class cloud.opencode.base.feature.strategy.TenantAwareStrategy
 
toString() - Method in class cloud.opencode.base.feature.strategy.UserListStrategy
 

U

UNAUTHORIZED - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
UNKNOWN - Enum constant in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
 
until(Instant) - Static method in class cloud.opencode.base.feature.strategy.DateRangeStrategy
Create strategy that starts now and ends at specified time 创建从现在开始到指定时间结束的策略
updatedAt() - Method in record class cloud.opencode.base.feature.Feature
Returns the value of the updatedAt record component.
updateStrategy(String, EnableStrategy) - Method in class cloud.opencode.base.feature.OpenFeature
Update feature strategy 更新功能策略
updateStrategy(String, EnableStrategy, String) - Method in class cloud.opencode.base.feature.security.SecureFeatureManager
Update feature strategy (requires admin) 更新功能策略(需要管理员)
userId() - Method in record class cloud.opencode.base.feature.FeatureContext
Returns the value of the userId record component.
userId(String) - Method in class cloud.opencode.base.feature.FeatureContext.Builder
Set user ID 设置用户ID
UserListStrategy - Class in cloud.opencode.base.feature.strategy
User List Strategy 用户列表策略
UserListStrategy(Set) - Constructor for class cloud.opencode.base.feature.strategy.UserListStrategy
Create user list strategy 创建用户列表策略

V

value() - Element in annotation interface cloud.opencode.base.feature.annotation.FeatureToggle
Feature key 功能键
valueOf(String) - Static method in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class cloud.opencode.base.feature.proxy.FeatureProxy.DisabledBehavior
Returns the enum constant of this class with the specified name.
values() - Static method in enum class cloud.opencode.base.feature.exception.FeatureErrorCode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.feature.lifecycle.FeatureLifecycle
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class cloud.opencode.base.feature.proxy.FeatureProxy.DisabledBehavior
Returns an array containing the constants of this enum class, in the order they are declared.
variant() - Element in annotation interface cloud.opencode.base.feature.annotation.FeatureVariant
Variant identifier (e.g., "A", "B", "control", "experiment") 变体标识符(例如:"A"、"B"、"control"、"experiment")
variant(String, Supplier, int) - Method in class cloud.opencode.base.feature.proxy.VariantRouter.Builder
Add variant from supplier 从供应器添加变体
variant(String, T) - Method in class cloud.opencode.base.feature.proxy.VariantRouter.Builder
Add a variant with equal percentage distribution 添加具有平均百分比分布的变体
variant(String, T, int) - Method in class cloud.opencode.base.feature.proxy.VariantRouter.Builder
Add a variant with specified percentage 添加具有指定百分比的变体
VariantRouter<T> - Class in cloud.opencode.base.feature.proxy
Variant Router 变体路由器
VariantRouter.Builder<T> - Class in cloud.opencode.base.feature.proxy
Builder for VariantRouter VariantRouter构建器
VariantRouter.MethodVariant<T> - Class in cloud.opencode.base.feature.proxy
Wrapper for method-based variants 方法变体的包装器
VariantRouter.NoVariantException - Exception Class in cloud.opencode.base.feature.proxy
Exception thrown when no variant is available 当没有可用变体时抛出的异常

W

whenDisabled(FeatureProxy.DisabledBehavior) - Method in class cloud.opencode.base.feature.proxy.FeatureProxy.Builder
Set behavior when feature is disabled 设置功能禁用时的行为
withExpiresAt(Instant) - Method in record class cloud.opencode.base.feature.Feature
Create a copy with updated expiration time 创建具有更新过期时间的副本
withFeature(Feature) - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Register a feature with full definition 使用完整定义注册功能
withFeature(String, boolean) - Method in class cloud.opencode.base.feature.testing.TestFeatureManager
Register a feature as enabled or disabled 将功能注册为启用或禁用
withGroup(String) - Method in record class cloud.opencode.base.feature.Feature
Create a copy with updated group 创建具有更新分组的副本
withLifecycle(FeatureLifecycle) - Method in record class cloud.opencode.base.feature.Feature
Create a copy with updated lifecycle 创建具有更新生命周期的副本
withStrategy(EnableStrategy) - Method in record class cloud.opencode.base.feature.Feature
Create a copy with updated strategy 创建具有更新策略的副本
wrap(FeatureStore) - Static method in class cloud.opencode.base.feature.store.CachedFeatureStore
Wraps a feature store with caching.
wrap(FeatureStore, Duration) - Static method in class cloud.opencode.base.feature.store.CachedFeatureStore
Wraps a feature store with caching and custom TTL.
wrap(FeatureStore, Duration, int) - Static method in class cloud.opencode.base.feature.store.CachedFeatureStore
Wraps a feature store with caching and custom settings.
A B C D E F G H I K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form