Class: WaterDrop::Polling::Config
- Inherits:
-
Object
- Object
- WaterDrop::Polling::Config
- Extended by:
- Karafka::Core::Configurable
- Defined in:
- lib/waterdrop/polling/config.rb
Overview
Configuration for the global FD poller singleton These settings apply to all producers using FD polling mode
Class Method Summary collapse
-
.setup {|config| ... } ⇒ Object
Configures the poller settings.
Class Method Details
.setup {|config| ... } ⇒ Object
Configures the poller settings
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/waterdrop/polling/config.rb', line 39 def setup configure do |config| yield(config) end Contracts::PollerConfig.new.validate!( self.config.to_h, Errors::ConfigurationInvalidError ) end |