Module: LaunchDarkly::Interfaces::DataSystem::Initializer
- Included in:
- LaunchDarkly::Impl::DataSystem::PollingDataSource, LaunchDarkly::Impl::Integrations::FileDataSourceV2, LaunchDarkly::Impl::Integrations::TestData::TestDataSourceV2
- Defined in:
- lib/ldclient-rb/interfaces/data_system.rb
Overview
Initializer represents a component capable of retrieving a single data result.
Instance Method Summary collapse
-
#fetch(selector_store) ⇒ FetchResult
Retrieves the initial data set for the data source.
-
#name ⇒ String
Returns the name of the initializer.
Instance Method Details
#fetch(selector_store) ⇒ FetchResult
Retrieves the initial data set for the data source.
If the LaunchDarkly server has instructed the SDK to fall back to the FDv1 protocol, the returned FetchResult#fallback_to_fdv1 is true. The wrapped result may still carry a successful Basis when the directive accompanied a valid payload, in which case callers should apply the payload before switching protocols.
667 668 669 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 667 def fetch(selector_store) raise NotImplementedError, "#{self.class} must implement #fetch" end |
#name ⇒ String
Returns the name of the initializer.
651 652 653 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 651 def name raise NotImplementedError, "#{self.class} must implement #name" end |