Package restkit :: Package pool :: Module simple :: Class SimplePool
[hide private]
[frames] | no frames]

Class SimplePool

source code

   object --+    
            |    
base.BasePool --+
                |
               SimplePool

Instance Methods [hide private]
 
__init__(self, keepalive=10, 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 base.BasePool: close

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=10, timeout=300)
(Constructor)

source code 

abstract class from which all connection pool should inherit.

Overrides: object.__init__
(inherited documentation)

get(self, netloc)

source code 

method used to return a connection from the pool

Overrides: base.BasePool.get
(inherited documentation)

put(self, netloc, conn)

source code 

Put an item back into the pool, when done

Overrides: base.BasePool.put
(inherited documentation)

clear_host(self, netloc)

source code 

method to clear all connections from host

Overrides: base.BasePool.clear_host
(inherited documentation)

clear(self)

source code 

method used to release all connections

Overrides: base.BasePool.clear
(inherited documentation)