ObservableFeatureFlagDataStore

An underlying store of raw, primitive feature flag values that supports observability via Flow.

Inheritors

Functions

Link copied to clipboard
abstract fun getBoolean(key: String, default: Boolean): Boolean

Get the Boolean value associated with key if present. Otherwise, return default.

Link copied to clipboard
abstract fun getDouble(key: String, default: Double): Double

Get the Double value associated with key if present. Otherwise, return default.

Link copied to clipboard
abstract fun getLong(key: String, default: Long): Long

Get the Long value associated with key if present. Otherwise, return default.

Link copied to clipboard
abstract fun getString(key: String, default: String): String

Get the String value associated with key if present. Otherwise, return default.

Link copied to clipboard
abstract fun observeBoolean(key: String, default: Boolean): Flow<Boolean>

Return a Flow which emits updates to a Boolean value associated with key if present. When no value is present for key, the returned flow will emit default. The returned flow initially emits the value at the time of collection, and will emit again on each subsequent update for key.

Link copied to clipboard
abstract fun observeDouble(key: String, default: Double): Flow<Double>

Return a Flow which emits updates to a Double value associated with key if present. When no value is present for key, the returned flow will emit default. The returned flow initially emits the value at the time of collection, and will emit again on each subsequent update for key.

Link copied to clipboard
abstract fun observeLong(key: String, default: Long): Flow<Long>

Return a Flow which emits updates to a Long value associated with key if present. When no value is present for key, the returned flow will emit default. The returned flow initially emits the value at the time of collection, and will emit again on each subsequent update for key.

Link copied to clipboard
abstract fun observeString(key: String, default: String): Flow<String>

Return a Flow which emits updates to a String value associated with key if present. When no value is present for key, the returned flow will emit default. The returned flow initially emits the value at the time of collection, and will emit again on each subsequent update for key.