Sha256: 15f99136de8e1ac75d909d1e349f78419cea9648f024f3dd07b8903afe386ba4

Contents?: true

Size: 1.16 KB

Versions: 114

Compression:

Stored size: 1.16 KB

Contents

# frozen_string_literal: true

module SplitIoClient
  module Telemetry
    class Synchronizer
      extend Forwardable
      def_delegators :@synchronizer,
                     :synchronize_config,
                     :synchronize_stats

      def initialize(config,
                     telemtry_consumers,
                     telemetry_init_producer,
                     repositories,
                     telemetry_api)
        @synchronizer = case config.telemetry_adapter.class.to_s
                        when 'SplitIoClient::Cache::Adapters::RedisAdapter'
                          SplitIoClient::Telemetry::RedisSynchronizer.new(config,
                                                                          telemetry_init_producer)
                        else
                          SplitIoClient::Telemetry::MemorySynchronizer.new(config,
                                                                           telemtry_consumers,
                                                                           repositories,
                                                                           telemetry_api)
                        end
      end
    end
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
splitclient-rb-8.2.0-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.2.0 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.3.pre.rc4-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.3.pre.rc4 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.3.pre.rc3-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.3.pre.rc3 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.3.pre.rc2-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.3.pre.rc2 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.3.pre.rc1-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.3.pre.rc1 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.2-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.2 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.2.pre.rc1-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.2.pre.rc1 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.1-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.1 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.1.pre.rc3-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.1.pre.rc3 lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.1.pre.rc2-java lib/splitclient-rb/telemetry/synchronizer.rb
splitclient-rb-8.1.1.pre.rc2 lib/splitclient-rb/telemetry/synchronizer.rb