Module: LaunchDarkly::Impl::DataSystem::Requester Private

Included in:
HTTPFDv1PollingRequester, HTTPPollingRequester
Defined in:
lib/ldclient-rb/impl/data_system/polling.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Requester protocol for polling data source

Since:

  • 5.5.0

Instance Method Summary collapse

Instance Method Details

#fetch(selector) ⇒ Result

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Fetches the data for the given selector. Returns a Result containing a tuple of [ChangeSet, headers], or an error if the data could not be retrieved.

Parameters:

Returns:

Raises:

  • (NotImplementedError)

Since:

  • 5.5.0



35
36
37
# File 'lib/ldclient-rb/impl/data_system/polling.rb', line 35

def fetch(selector)
  raise NotImplementedError
end

#stopObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Closes any persistent connections and releases resources. This method should be called when the requester is no longer needed. Implementations should handle being called multiple times gracefully.

Since:

  • 5.5.0



44
45
46
# File 'lib/ldclient-rb/impl/data_system/polling.rb', line 44

def stop
  # Optional - implementations may override if they need cleanup
end