Module: LaunchDarkly::Interfaces::DataSystem::Synchronizer

Included in:
LaunchDarkly::Impl::Integrations::FileDataSourceV2
Defined in:
lib/ldclient-rb/interfaces/data_system.rb

Overview

Synchronizer represents a component capable of synchronizing data from an external source.

This type is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. https://launchdarkly.com/docs/sdk/features/data-saving-mode

Instance Method Summary collapse

Instance Method Details

#nameString

Returns the name of the synchronizer.

Returns:

  • (String)

Raises:

  • (NotImplementedError)


678
679
680
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 678

def name
  raise NotImplementedError, "#{self.class} must implement #name"
end

#stopvoid

This method returns an undefined value.

Halts the synchronization process.

Raises:

  • (NotImplementedError)


698
699
700
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 698

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.

Parameters:

Yield Parameters:

  • update (Update)

    The update

Raises:

  • (NotImplementedError)


689
690
691
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 689

def sync(selector_store, &block)
  raise NotImplementedError, "#{self.class} must implement #sync"
end