Class: SplitIoClient::Cache::Senders::ImpressionsCountSender
- Inherits:
-
Object
- Object
- SplitIoClient::Cache::Senders::ImpressionsCountSender
- Defined in:
- lib/splitclient-rb/cache/senders/impressions_count_sender.rb
Constant Summary collapse
- COUNTER_REFRESH_RATE_SECONDS =
1800
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(config, impression_counter, impressions_api) ⇒ ImpressionsCountSender
constructor
A new instance of ImpressionsCountSender.
Constructor Details
#initialize(config, impression_counter, impressions_api) ⇒ ImpressionsCountSender
Returns a new instance of ImpressionsCountSender.
9 10 11 12 13 |
# File 'lib/splitclient-rb/cache/senders/impressions_count_sender.rb', line 9 def initialize(config, impression_counter, impressions_api) @config = config @impression_counter = impression_counter @impressions_api = impressions_api end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/splitclient-rb/cache/senders/impressions_count_sender.rb', line 15 def call impressions_count_thread if defined?(PhusionPassenger) PhusionPassenger.on_event(:starting_worker_process) do |forked| impressions_count_thread if forked end end end |