Method: ZK::Pool::Simple#initialize
- Defined in:
- lib/zk/pool.rb
#initialize(host, number_of_connections = 10, opts = {}) ⇒ ZK::ClientPool
initialize a connection pool using the same optons as ZK.new
325 326 327 328 329 330 |
# File 'lib/zk/pool.rb', line 325 def initialize(host, number_of_connections=10, opts = {}) opts = opts.dup opts[:max_clients] = opts[:min_clients] = number_of_connections.to_i super(host, opts) end |