Sha256: adbce046f777c0d86ef007d5b97263c9bc47a75668022c0755d96bd89b37afae

Contents?: true

Size: 692 Bytes

Versions: 62

Compression:

Stored size: 692 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware"
require "subscription_registry"

module Renalware
  module Feeds
    module_function

    def table_name_prefix
      "feed_"
    end

    def message_processor
      @message_processor ||= build_message_processor
    end

    # Note we are using both the SubscriptionRegistry (which we think is not thread safe)
    # as does not store the registry in TLS (?) and also the newer subscription_map
    # We need to consolidate these.
    def build_message_processor
      SubscriptionRegistry
        .instance
        .subscribe_listeners_to(MessageProcessor.new)
        .broadcasting_to_configured_subscribers
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
renalware-core-2.0.110 app/models/renalware/feeds.rb
renalware-core-2.0.109 app/models/renalware/feeds.rb
renalware-core-2.0.108 app/models/renalware/feeds.rb
renalware-core-2.0.106 app/models/renalware/feeds.rb
renalware-core-2.0.105 app/models/renalware/feeds.rb
renalware-core-2.0.104 app/models/renalware/feeds.rb
renalware-core-2.0.103 app/models/renalware/feeds.rb
renalware-core-2.0.102 app/models/renalware/feeds.rb
renalware-core-2.0.101 app/models/renalware/feeds.rb
renalware-core-2.0.100 app/models/renalware/feeds.rb
renalware-core-2.0.99 app/models/renalware/feeds.rb
renalware-core-2.0.98 app/models/renalware/feeds.rb
renalware-core-2.0.97 app/models/renalware/feeds.rb
renalware-core-2.0.96 app/models/renalware/feeds.rb
renalware-core-2.0.95 app/models/renalware/feeds.rb
renalware-core-2.0.94 app/models/renalware/feeds.rb
renalware-core-2.0.93 app/models/renalware/feeds.rb
renalware-core-2.0.92 app/models/renalware/feeds.rb
renalware-core-2.0.91 app/models/renalware/feeds.rb
renalware-core-2.0.90 app/models/renalware/feeds.rb