Module: Swift::Pool::Handler

Defined in:
lib/swift/pool.rb

Instance Method Summary collapse

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_readableObject



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_writableObject



21
22
23
# File 'lib/swift/pool.rb', line 21

def notify_writable
  notify_readable
end

#socketObject



10
11
12
# File 'lib/swift/pool.rb', line 10

def socket
  @request.socket
end