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

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 not suitable for production usage.

Do not use it. You have been warned.

Instance Method Summary collapse

Instance Method Details

#nameString

Returns the name of the synchronizer.

Returns:

  • (String)

Raises:

  • (NotImplementedError)


729
730
731
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 729

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

#stopvoid

This method returns an undefined value.

Halts the synchronization process.

Raises:

  • (NotImplementedError)


749
750
751
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 749

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)


740
741
742
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 740

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