Module: LaunchDarkly::Impl::DataSystem::Synchronizer
- Defined in:
- lib/ldclient-rb/impl/data_system.rb
Overview
Mixin that defines the required methods of a synchronizer implementation. A synchronizer is a component capable of synchronizing data from an external data source, such as a streaming or polling API.
It is responsible for yielding Update objects that represent the current state of the data source, including any changes that have occurred since the last synchronization.
Application code should not need to implement this directly; it is used internally by the SDK.
Instance Method Summary collapse
-
#sync {|Update| ... } ⇒ void
Sync should begin the synchronization process for the data source, yielding Update objects until the connection is closed or an unrecoverable error occurs.
Instance Method Details
#sync {|Update| ... } ⇒ void
This method returns an undefined value.
Sync should begin the synchronization process for the data source, yielding Update objects until the connection is closed or an unrecoverable error occurs.
291 292 293 |
# File 'lib/ldclient-rb/impl/data_system.rb', line 291 def sync raise NotImplementedError, "#{self.class} must implement #sync" end |