Class: Ridley::Client::ConnectionSupervisor

Inherits:
Celluloid::SupervisionGroup
  • Object
show all
Defined in:
lib/ridley/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(registry, options) ⇒ ConnectionSupervisor

Returns a new instance of ConnectionSupervisor.



4
5
6
7
8
9
10
11
12
# File 'lib/ridley/client.rb', line 4

def initialize(registry, options)
  super(registry)
  pool(Ridley::Connection, size: options[:pool_size], args: [
    options[:server_url],
    options[:client_name],
    options[:client_key],
    options.slice(*Ridley::Connection::VALID_OPTIONS)
  ], as: :connection_pool)
end