Module: LaunchDarkly::Impl::DataSystem::Initializer Private
- Defined in:
- lib/ldclient-rb/impl/data_system.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Mixin that defines the required methods of an initializer implementation. An initializer is a component capable of retrieving a single data result, such as from the LaunchDarkly polling API.
The intent of initializers is to quickly fetch an initial set of data, which may be stale but is fast to retrieve. This initial data serves as a foundation for a Synchronizer to build upon, enabling it to provide updates as new changes occur.
Application code should not need to implement this directly; it is used internally by the SDK.
Instance Method Summary collapse
-
#fetch ⇒ LaunchDarkly::Result
private
Fetch should retrieve the initial data set for the data source, returning a Basis object on success, or an error message on failure.
Instance Method Details
#fetch ⇒ LaunchDarkly::Result
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Fetch should retrieve the initial data set for the data source, returning a Basis object on success, or an error message on failure.
232 233 234 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 232 def fetch raise NotImplementedError, "#{self.class} must implement #fetch" end |