Module: LaunchDarkly::Impl::DataSystem::Initializer
- Defined in:
- lib/ldclient-rb/impl/data_system.rb
Overview
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
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
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 |