Class: LaunchDarkly::DataSystemConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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.

Parameters:



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_storeLaunchDarkly::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_modeSymbol (readonly)

The data store mode.

Returns:

  • (Symbol)


734
735
736
# File 'lib/ldclient-rb/config.rb', line 734

def data_store_mode
  @data_store_mode
end

#fdv1_fallback_synchronizerProc(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

#initializersArray<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.

Returns:



722
723
724
# File 'lib/ldclient-rb/config.rb', line 722

def initializers
  @initializers
end

#primary_synchronizerProc(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_synchronizerProc(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