Class: LaunchDarkly::DataSystemConfig
- Inherits:
-
Object
- Object
- LaunchDarkly::DataSystemConfig
- Defined in:
- lib/ldclient-rb/config.rb
Overview
Configuration for LaunchDarkly's data acquisition strategy.
This is not stable and is not subject to any backwards compatibility guarantees or semantic versioning. It is not suitable for production usage.
Instance Attribute Summary collapse
-
#data_store ⇒ LaunchDarkly::Interfaces::FeatureStore?
readonly
The data store.
-
#data_store_mode ⇒ Symbol
readonly
The data store mode.
-
#fdv1_fallback_synchronizer ⇒ #build(String, Config)?
readonly
The FDv1-compatible fallback synchronizer builder.
-
#initializers ⇒ Array<#build(String, Config)>?
readonly
The initializer builders for the data system.
-
#synchronizers ⇒ Array<#build(String, Config)>?
readonly
The synchronizer builders for the data system.
Instance Method Summary collapse
-
#initialize(initializers: nil, synchronizers: nil, data_store_mode: LaunchDarkly::Interfaces::DataSystem::DataStoreMode::READ_ONLY, data_store: nil, fdv1_fallback_synchronizer: nil) ⇒ DataSystemConfig
constructor
A new instance of DataSystemConfig.
Constructor Details
#initialize(initializers: nil, synchronizers: nil, data_store_mode: LaunchDarkly::Interfaces::DataSystem::DataStoreMode::READ_ONLY, data_store: nil, fdv1_fallback_synchronizer: nil) ⇒ DataSystemConfig
Returns a new instance of DataSystemConfig.
712 713 714 715 716 717 718 719 |
# File 'lib/ldclient-rb/config.rb', line 712 def initialize(initializers: nil, synchronizers: nil, data_store_mode: LaunchDarkly::Interfaces::DataSystem::DataStoreMode::READ_ONLY, data_store: nil, fdv1_fallback_synchronizer: nil) @initializers = initializers @synchronizers = synchronizers @data_store_mode = data_store_mode @data_store = data_store @fdv1_fallback_synchronizer = fdv1_fallback_synchronizer end |
Instance Attribute Details
#data_store ⇒ LaunchDarkly::Interfaces::FeatureStore? (readonly)
The data store.
735 736 737 |
# File 'lib/ldclient-rb/config.rb', line 735 def data_store @data_store end |
#data_store_mode ⇒ Symbol (readonly)
The data store mode.
731 732 733 |
# File 'lib/ldclient-rb/config.rb', line 731 def data_store_mode @data_store_mode end |
#fdv1_fallback_synchronizer ⇒ #build(String, Config)? (readonly)
The FDv1-compatible fallback synchronizer builder. Responds to build(sdk_key, config) and returns a Synchronizer.
739 740 741 |
# File 'lib/ldclient-rb/config.rb', line 739 def fdv1_fallback_synchronizer @fdv1_fallback_synchronizer end |
#initializers ⇒ Array<#build(String, Config)>? (readonly)
The initializer builders for the data system. Each builder responds to build(sdk_key, config) and returns an Initializer.
723 724 725 |
# File 'lib/ldclient-rb/config.rb', line 723 def initializers @initializers end |
#synchronizers ⇒ Array<#build(String, Config)>? (readonly)
The synchronizer builders for the data system. Each builder responds to build(sdk_key, config) and returns a Synchronizer.
727 728 729 |
# File 'lib/ldclient-rb/config.rb', line 727 def synchronizers @synchronizers end |