Package restkit :: Package pool :: Module base :: Class BasePool
[hide private]
[frames] | no frames]

Class BasePool

source code

object --+
         |
        BasePool
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, keepalive=2, timeout=300)
abstract class from which all connection pool should inherit.
source code
 
get(self, netloc)
method used to return a connection from the pool
source code
 
put(self, netloc, conn)
Put an item back into the pool, when done
source code
 
clear_host(self, netloc)
method to clear all connections from host
source code
 
clear(self)
method used to release all connections
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, keepalive=2, timeout=300)
(Constructor)

source code 

abstract class from which all connection pool should inherit.

Overrides: object.__init__