| Package | Description |
|---|---|
| dev.openfeature.sdk |
| Modifier and Type | Method and Description |
|---|---|
static OpenFeatureAPI |
OpenFeatureAPI.getInstance()
Provisions the
OpenFeatureAPI singleton (if needed) and returns it. |
OpenFeatureAPI |
OpenFeatureAPI.on(ProviderEvent event,
Consumer<EventDetails> handler)
Add a handler for the specified
ProviderEvent. |
OpenFeatureAPI |
OpenFeatureAPI.onProviderConfigurationChanged(Consumer<EventDetails> handler)
Add a handler for the
ProviderEvent.PROVIDER_CONFIGURATION_CHANGED event. |
OpenFeatureAPI |
OpenFeatureAPI.onProviderError(Consumer<EventDetails> handler)
Add a handler for the
ProviderEvent.PROVIDER_STALE event. |
OpenFeatureAPI |
OpenFeatureAPI.onProviderReady(Consumer<EventDetails> handler)
Add a handler for the
ProviderEvent.PROVIDER_READY event. |
OpenFeatureAPI |
OpenFeatureAPI.onProviderStale(Consumer<EventDetails> handler)
Add a handler for the
ProviderEvent.PROVIDER_ERROR event. |
OpenFeatureAPI |
OpenFeatureAPI.removeHandler(ProviderEvent event,
Consumer<EventDetails> handler)
Remove the previously attached handler by reference.
|
OpenFeatureAPI |
OpenFeatureAPI.setEvaluationContext(EvaluationContext evaluationContext)
Sets the global evaluation context, which will be used for all evaluations.
|
| Constructor and Description |
|---|
OpenFeatureClient(OpenFeatureAPI openFeatureAPI,
String domain,
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.
|
Copyright © 2024. All rights reserved.