module Slaver::ProxyMethods::ClassMethods

Public Instance Methods

clear_active_connections_with_proxy!() click to toggle source
# File lib/slaver/proxy_methods.rb, line 32
def clear_active_connections_with_proxy!
  if current_config
    connection_proxy.clear_active_connections!
  else
    clear_active_connections_without_proxy!
  end
end
clear_all_connections_with_proxy!() click to toggle source
# File lib/slaver/proxy_methods.rb, line 40
def clear_all_connections_with_proxy!
  if current_config
    connection_proxy.clear_all_connections!
  else
    clear_all_connections_without_proxy!
  end
end
connected_with_proxy?() click to toggle source
# File lib/slaver/proxy_methods.rb, line 48
def connected_with_proxy?
  if current_config
    connection_proxy.connected?
  else
    connected_without_proxy?
  end
end
connection_pool_with_proxy() click to toggle source
# File lib/slaver/proxy_methods.rb, line 16
def connection_pool_with_proxy
  if current_config
    connection_proxy.connection_pool
  else
    connection_pool_without_proxy
  end
end
connection_proxy() click to toggle source
# File lib/slaver/proxy_methods.rb, line 56
def connection_proxy
  Proxy.instance.for_config(self, current_config)
end
connection_with_proxy() click to toggle source
# File lib/slaver/proxy_methods.rb, line 24
def connection_with_proxy
  if current_config
    connection_proxy
  else
    (connection_pool && connection_pool.connection)
  end
end