Class: LaunchDarkly::Impl::DataSystem::StreamingDataSourceBuilder Private
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::DataSystem::StreamingDataSourceBuilder
- Includes:
- DataSourceBuilderCommon
- Defined in:
- lib/ldclient-rb/impl/data_system/streaming.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Builder for a StreamingDataSource.
Constant Summary collapse
- DEFAULT_BASE_URI =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"https://stream.launchdarkly.com"- DEFAULT_INITIAL_RECONNECT_DELAY =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
1
Instance Method Summary collapse
-
#build(sdk_key, config) ⇒ StreamingDataSource
private
Builds the StreamingDataSource with the configured parameters.
-
#initial_reconnect_delay(delay) ⇒ StreamingDataSourceBuilder
private
Sets the initial delay before reconnecting after an error.
-
#initialize ⇒ StreamingDataSourceBuilder
constructor
private
A new instance of StreamingDataSourceBuilder.
Methods included from DataSourceBuilderCommon
#base_uri, #connect_timeout, #read_timeout, #socket_factory
Constructor Details
#initialize ⇒ StreamingDataSourceBuilder
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.
Returns a new instance of StreamingDataSourceBuilder.
368 369 370 |
# File 'lib/ldclient-rb/impl/data_system/streaming.rb', line 368 def initialize # No initialization needed - defaults applied in build via nil-check end |
Instance Method Details
#build(sdk_key, config) ⇒ StreamingDataSource
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.
Builds the StreamingDataSource with the configured parameters.
390 391 392 393 394 395 396 397 |
# File 'lib/ldclient-rb/impl/data_system/streaming.rb', line 390 def build(sdk_key, config) http_opts = build_http_config StreamingDataSource.new( sdk_key, http_opts, @initial_reconnect_delay || DEFAULT_INITIAL_RECONNECT_DELAY, config ) end |
#initial_reconnect_delay(delay) ⇒ StreamingDataSourceBuilder
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.
Sets the initial delay before reconnecting after an error.
378 379 380 381 |
# File 'lib/ldclient-rb/impl/data_system/streaming.rb', line 378 def initial_reconnect_delay(delay) @initial_reconnect_delay = delay self end |