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
Instance Method Summary collapse
-
#fetch(selector) ⇒ Result
private
Fetches the data for the given selector.
-
#stop ⇒ Object
private
Closes any persistent connections and releases resources.
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.
35 36 37 |
# File 'lib/ldclient-rb/impl/data_system/polling.rb', line 35 def fetch(selector) raise NotImplementedError end |
#stop ⇒ Object
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.
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 |