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

Overview

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

Instance Method Summary collapse

Instance Method Details

#nameString

Returns the name of the synchronizer.

Returns:

  • (String)

Raises:

  • (NotImplementedError)


681
682
683
# File 'lib/ldclient-rb/interfaces/data_system.rb', line 681

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

#stopvoid

This method returns an undefined value.

Halts the synchronization process.

Raises:

  • (NotImplementedError)


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.

Parameters:

Yield Parameters:

  • update (Update)

    The update

Raises:

  • (NotImplementedError)


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