class Thin::Backends::Base
Public Class Methods
num_connections()
click to toggle source
# File lib/garbageman/ext/thin.rb, line 5 def self.num_connections; @@num_connections; end
server_index()
click to toggle source
# File lib/garbageman/ext/thin.rb, line 7 def self.server_index; @@server_index; end
server_index=(index)
click to toggle source
# File lib/garbageman/ext/thin.rb, line 8 def self.server_index=(index); @@server_index = index; end
Public Instance Methods
connection_finished(connection)
Also aliased as: connection_finished_without_count
Alias for: connection_finished_with_count
connection_finished_with_count(connection)
click to toggle source
# File lib/garbageman/ext/thin.rb, line 10 def connection_finished_with_count(connection) connection_finished_without_count(connection).tap { @@num_connections -= 1 } end
Also aliased as: connection_finished
Protected Instance Methods
initialize_connection(connection)
Also aliased as: initialize_connection_without_count
Alias for: initialize_connection_with_count
initialize_connection_with_count(connection)
click to toggle source
# File lib/garbageman/ext/thin.rb, line 18 def initialize_connection_with_count(connection) initialize_connection_without_count(connection).tap { @@num_connections += 1 } end
Also aliased as: initialize_connection