Module: Swift::Pool::Handler
- Defined in:
- lib/swift/pool.rb
Instance Method Summary collapse
- #initialize(request, pool) ⇒ Object
- #notify_readable ⇒ Object
- #notify_writable ⇒ Object
- #socket ⇒ Object
Instance Method Details
#initialize(request, pool) ⇒ Object
6 7 8 |
# File 'lib/swift/pool.rb', line 6 def initialize request, pool @request, @pool = request, pool end |
#notify_readable ⇒ Object
14 15 16 17 18 19 |
# File 'lib/swift/pool.rb', line 14 def notify_readable if @request.process detach @pool.detach self end end |
#notify_writable ⇒ Object
21 22 23 |
# File 'lib/swift/pool.rb', line 21 def notify_writable notify_readable end |
#socket ⇒ Object
10 11 12 |
# File 'lib/swift/pool.rb', line 10 def socket @request.socket end |