Method: Roma::Messaging::ConPool#initialize
- Defined in:
- lib/roma/messaging/con_pool.rb
#initialize(maxlength = 10, expire_time = 30) ⇒ ConPool
Returns a new instance of ConPool.
15 16 17 18 19 20 |
# File 'lib/roma/messaging/con_pool.rb', line 15 def initialize(maxlength = 10, expire_time = 30) @pool = {} @maxlength = maxlength @expire_time = expire_time @lock = Mutex.new end |