Class: SseCable::ConnectionPool
- Inherits:
-
Object
- Object
- SseCable::ConnectionPool
- Defined in:
- lib/sse_cable/connection_pool.rb
Instance Method Summary collapse
- #acquire ⇒ Object
-
#initialize(pool_size) ⇒ ConnectionPool
constructor
A new instance of ConnectionPool.
- #release(connection) ⇒ Object
Constructor Details
#initialize(pool_size) ⇒ ConnectionPool
Returns a new instance of ConnectionPool.
5 6 7 |
# File 'lib/sse_cable/connection_pool.rb', line 5 def initialize(pool_size) # Initialize connection pool with specified size end |
Instance Method Details
#acquire ⇒ Object
9 10 11 |
# File 'lib/sse_cable/connection_pool.rb', line 9 def acquire # Acquire a connection from the pool end |
#release(connection) ⇒ Object
13 14 15 |
# File 'lib/sse_cable/connection_pool.rb', line 13 def release(connection) # Release the connection back to the pool end |