Module: LaunchDarkly::Interfaces::DataSystem::Synchronizer
- Included in:
- LaunchDarkly::Impl::DataSystem::PollingDataSource, LaunchDarkly::Impl::DataSystem::StreamingDataSource, LaunchDarkly::Impl::Integrations::FileDataSourceV2, LaunchDarkly::Impl::Integrations::TestData::TestDataSourceV2
- Defined in:
- lib/ldclient-rb/interfaces/data_system.rb
Overview
Synchronizer represents a component capable of synchronizing data from an external source.
Instance Method Summary collapse
-
#name ⇒ String
Returns the name of the synchronizer.
-
#stop ⇒ void
Halts the synchronization process.
-
#sync(selector_store) {|update| ... } ⇒ void
Begins the synchronization process, yielding Update objects.
Instance Method Details
#name ⇒ String
Returns the name of the synchronizer.
681 682 683 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 681 def name raise NotImplementedError, "#{self.class} must implement #name" end |
#stop ⇒ void
This method returns an undefined value.
Halts the synchronization process.
701 702 703 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 701 def stop raise NotImplementedError, "#{self.class} must implement #stop" end |
#sync(selector_store) {|update| ... } ⇒ void
This method returns an undefined value.
Begins the synchronization process, yielding Update objects.
692 693 694 |
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 692 def sync(selector_store, &block) raise NotImplementedError, "#{self.class} must implement #sync" end |