| Constructor and Description |
|---|
OpenFeatureClient(OpenFeatureAPI openFeatureAPI,
String name,
String version)
Deprecated.
Do not use this constructor. It's for internal use only.
Clients created using it will not run event handlers.
Use the OpenFeatureAPI's getClient factory method instead.
|
@Deprecated public OpenFeatureClient(OpenFeatureAPI openFeatureAPI, String name, String version)
openFeatureAPI - Backing global singletonname - Name of the client (used by observability tools).version - Version of the client (used by observability tools).public void addHooks(Hook... hooks)
public void setEvaluationContext(EvaluationContext evaluationContext)
setEvaluationContext in interface ClientevaluationContext - Client level context.public EvaluationContext getEvaluationContext()
getEvaluationContext in interface ClientEvaluationContextpublic Boolean getBooleanValue(String key, Boolean defaultValue)
getBooleanValue in interface Featurespublic Boolean getBooleanValue(String key, Boolean defaultValue, EvaluationContext ctx)
getBooleanValue in interface Featurespublic Boolean getBooleanValue(String key, Boolean defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getBooleanValue in interface Featurespublic FlagEvaluationDetails<Boolean> getBooleanDetails(String key, Boolean defaultValue)
getBooleanDetails in interface Featurespublic FlagEvaluationDetails<Boolean> getBooleanDetails(String key, Boolean defaultValue, EvaluationContext ctx)
getBooleanDetails in interface Featurespublic FlagEvaluationDetails<Boolean> getBooleanDetails(String key, Boolean defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getBooleanDetails in interface Featurespublic String getStringValue(String key, String defaultValue)
getStringValue in interface Featurespublic String getStringValue(String key, String defaultValue, EvaluationContext ctx)
getStringValue in interface Featurespublic String getStringValue(String key, String defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getStringValue in interface Featurespublic FlagEvaluationDetails<String> getStringDetails(String key, String defaultValue)
getStringDetails in interface Featurespublic FlagEvaluationDetails<String> getStringDetails(String key, String defaultValue, EvaluationContext ctx)
getStringDetails in interface Featurespublic FlagEvaluationDetails<String> getStringDetails(String key, String defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getStringDetails in interface Featurespublic Integer getIntegerValue(String key, Integer defaultValue)
getIntegerValue in interface Featurespublic Integer getIntegerValue(String key, Integer defaultValue, EvaluationContext ctx)
getIntegerValue in interface Featurespublic Integer getIntegerValue(String key, Integer defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getIntegerValue in interface Featurespublic FlagEvaluationDetails<Integer> getIntegerDetails(String key, Integer defaultValue)
getIntegerDetails in interface Featurespublic FlagEvaluationDetails<Integer> getIntegerDetails(String key, Integer defaultValue, EvaluationContext ctx)
getIntegerDetails in interface Featurespublic FlagEvaluationDetails<Integer> getIntegerDetails(String key, Integer defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getIntegerDetails in interface Featurespublic Double getDoubleValue(String key, Double defaultValue)
getDoubleValue in interface Featurespublic Double getDoubleValue(String key, Double defaultValue, EvaluationContext ctx)
getDoubleValue in interface Featurespublic Double getDoubleValue(String key, Double defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getDoubleValue in interface Featurespublic FlagEvaluationDetails<Double> getDoubleDetails(String key, Double defaultValue)
getDoubleDetails in interface Featurespublic FlagEvaluationDetails<Double> getDoubleDetails(String key, Double defaultValue, EvaluationContext ctx)
getDoubleDetails in interface Featurespublic FlagEvaluationDetails<Double> getDoubleDetails(String key, Double defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getDoubleDetails in interface Featurespublic Value getObjectValue(String key, Value defaultValue)
getObjectValue in interface Featurespublic Value getObjectValue(String key, Value defaultValue, EvaluationContext ctx)
getObjectValue in interface Featurespublic Value getObjectValue(String key, Value defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getObjectValue in interface Featurespublic FlagEvaluationDetails<Value> getObjectDetails(String key, Value defaultValue)
getObjectDetails in interface Featurespublic FlagEvaluationDetails<Value> getObjectDetails(String key, Value defaultValue, EvaluationContext ctx)
getObjectDetails in interface Featurespublic FlagEvaluationDetails<Value> getObjectDetails(String key, Value defaultValue, EvaluationContext ctx, FlagEvaluationOptions options)
getObjectDetails in interface Featurespublic Metadata getMetadata()
getMetadata in interface Clientpublic Client onProviderReady(Consumer<EventDetails> handler)
ProviderEvent.PROVIDER_READY event.
Shorthand for EventBus.on(ProviderEvent, Consumer)onProviderReady in interface EventBus<Client>handler - behavior to add with this eventpublic Client onProviderConfigurationChanged(Consumer<EventDetails> handler)
ProviderEvent.PROVIDER_CONFIGURATION_CHANGED event.
Shorthand for EventBus.on(ProviderEvent, Consumer)onProviderConfigurationChanged in interface EventBus<Client>handler - behavior to add with this eventpublic Client onProviderError(Consumer<EventDetails> handler)
ProviderEvent.PROVIDER_STALE event.
Shorthand for EventBus.on(ProviderEvent, Consumer)onProviderError in interface EventBus<Client>handler - behavior to add with this eventpublic Client onProviderStale(Consumer<EventDetails> handler)
ProviderEvent.PROVIDER_ERROR event.
Shorthand for EventBus.on(ProviderEvent, Consumer)onProviderStale in interface EventBus<Client>handler - behavior to add with this eventpublic Client on(ProviderEvent event, Consumer<EventDetails> handler)
ProviderEvent.public Client removeHandler(ProviderEvent event, Consumer<EventDetails> handler)
removeHandler in interface EventBus<Client>event - event typehandler - to be removedCopyright © 2023. All rights reserved.