Package restkit :: Package conn :: Module base :: Class ConnectionManager
[hide private]
[frames] | no frames]

Class ConnectionManager

source code

object --+
         |
        ConnectionManager
Known Subclasses:

maintain all connections pools. By default a pool have 10 connections

Instance Methods [hide private]
 
__init__(self, timeout=300, nb_connections=10)
constructor for the manager
source code
 
init_lock(self) source code
 
get_key(self, route) source code
 
get_pool(self, route)
get a pool for given route
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  POOL_CLASS = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, timeout=300, nb_connections=10)
(Constructor)

source code 

constructor for the manager

:attr timeout: integer, default timeout :attr nb_connections: integeger, number of connections in the pool

Overrides: object.__init__

get_pool(self, route)

source code 

get a pool for given route

where address is a tuple of (host, port) and ssl_args a dict containing ssl arguments