Class: Mooncell::ConnectionPool Private
- Inherits:
-
Object
- Object
- Mooncell::ConnectionPool
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/mooncell/connection_pool.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The connection pool
Instance Attribute Summary collapse
- #connections ⇒ Object readonly private
Instance Method Summary collapse
-
#each(&block) ⇒ Object
private
Iterate connections.
-
#initialize ⇒ ConnectionPool
constructor
private
Create a new connection pool.
Constructor Details
#initialize ⇒ ConnectionPool
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a new connection pool
25 26 27 |
# File 'lib/mooncell/connection_pool.rb', line 25 def initialize @connections = Concurrent::Set.new end |
Instance Attribute Details
#connections ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/mooncell/connection_pool.rb', line 19 def connections @connections end |
Instance Method Details
#each(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Iterate connections
35 36 37 |
# File 'lib/mooncell/connection_pool.rb', line 35 def each(&block) @connections.each(&block) end |