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 ⇒ Proc(String, Config) => LaunchDarkly::Interfaces::DataSystem::Synchronizer?
readonly
The FDv1-compatible fallback synchronizer builder.
-
#initializers ⇒ Array<Proc(String, Config) => LaunchDarkly::Interfaces::DataSystem::Initializer>?
readonly
The initializers for the data system.
-
#primary_synchronizer ⇒ Proc(String, Config) => LaunchDarkly::Interfaces::DataSystem::Synchronizer?
readonly
The primary synchronizer builder.
-
#secondary_synchronizer ⇒ Proc(String, Config) => LaunchDarkly::Interfaces::DataSystem::Synchronizer?
readonly
The secondary synchronizer builder.
Instance Method Summary collapse
-
#initialize(initializers: nil, primary_synchronizer: nil, secondary_synchronizer: 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, primary_synchronizer: nil, secondary_synchronizer: nil, data_store_mode: LaunchDarkly::Interfaces::DataSystem::DataStoreMode::READ_ONLY, data_store: nil, fdv1_fallback_synchronizer: nil) ⇒ DataSystemConfig
Returns a new instance of DataSystemConfig.
710 711 712 713 714 715 716 717 718 |
# File 'lib/ldclient-rb/config.rb', line 710 def initialize(initializers: nil, primary_synchronizer: nil, secondary_synchronizer: nil, data_store_mode: LaunchDarkly::Interfaces::DataSystem::DataStoreMode::READ_ONLY, data_store: nil, fdv1_fallback_synchronizer: nil) @initializers = initializers @primary_synchronizer = primary_synchronizer @secondary_synchronizer = secondary_synchronizer @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.
738 739 740 |
# File 'lib/ldclient-rb/config.rb', line 738 def data_store @data_store end |
#data_store_mode ⇒ Symbol (readonly)
The data store mode.
734 735 736 |
# File 'lib/ldclient-rb/config.rb', line 734 def data_store_mode @data_store_mode end |
#fdv1_fallback_synchronizer ⇒ Proc(String, Config) => LaunchDarkly::Interfaces::DataSystem::Synchronizer? (readonly)
The FDv1-compatible fallback synchronizer builder. Takes sdk_key and Config and returns a Synchronizer.
742 743 744 |
# File 'lib/ldclient-rb/config.rb', line 742 def fdv1_fallback_synchronizer @fdv1_fallback_synchronizer end |
#initializers ⇒ Array<Proc(String, Config) => LaunchDarkly::Interfaces::DataSystem::Initializer>? (readonly)
The initializers for the data system. Each proc takes sdk_key and Config and returns an Initializer.
722 723 724 |
# File 'lib/ldclient-rb/config.rb', line 722 def initializers @initializers end |
#primary_synchronizer ⇒ Proc(String, Config) => LaunchDarkly::Interfaces::DataSystem::Synchronizer? (readonly)
The primary synchronizer builder. Takes sdk_key and Config and returns a Synchronizer.
726 727 728 |
# File 'lib/ldclient-rb/config.rb', line 726 def primary_synchronizer @primary_synchronizer end |
#secondary_synchronizer ⇒ Proc(String, Config) => LaunchDarkly::Interfaces::DataSystem::Synchronizer? (readonly)
The secondary synchronizer builder. Takes sdk_key and Config and returns a Synchronizer.
730 731 732 |
# File 'lib/ldclient-rb/config.rb', line 730 def secondary_synchronizer @secondary_synchronizer end |