Class: Ridley::Client::ConnectionSupervisor
- Inherits:
-
Celluloid::SupervisionGroup
- Object
- Celluloid::SupervisionGroup
- Ridley::Client::ConnectionSupervisor
- Defined in:
- lib/ridley/client.rb
Instance Method Summary collapse
-
#initialize(registry, options) ⇒ ConnectionSupervisor
constructor
A new instance of ConnectionSupervisor.
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, ) super(registry) pool(Ridley::Connection, size: [:pool_size], args: [ [:server_url], [:client_name], [:client_key], .slice(*Ridley::Connection::VALID_OPTIONS) ], as: :connection_pool) end |