Method: Sequel::ShardedThreadedConnectionPool#size
- Defined in:
- lib/sequel/connection_pool/sharded_threaded.rb
permalink #size(server = :default) ⇒ Object
The total number of connections opened for the given server. Nonexistent servers will return the created count of the default server. The calling code should NOT have the mutex before calling this.
86 87 88 |
# File 'lib/sequel/connection_pool/sharded_threaded.rb', line 86 def size(server=:default) @mutex.synchronize{_size(server)} end |