Home | Trees | Indices | Help |
|
---|
|
object --+ | BasePool
|
|||
|
|||
|
|||
PooledInterface |
|
||
PooledInterface |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
NoneType |
_LOCK = None Locking class. |
||
bool |
_FORK_PROTECT = False Clear the pool, when the PID changes? |
|
|||
Inherited from |
|
|
Create a pooled object This method must be implemented by subclasses.
|
|
Put an object back into the pool If the pool is full, the object is destroyed instead. If the object does not come from this pool, it is an error (assert).
|
Remove object from pool If the object original came not from this pool, this is not an error.
|
Clear the currently cached connections Connections handed out are not affected. This just empties the cached ones. |
Shutdown this pool The queue will be emptied and all objects destroyed. No more objects will be created in this pool. Waiting consumers of the pool will get an AssertionError, because they shouldn't consume anymore anyway. |
Check if the current PID differs from the stored one If they actually differed, we forked and clear the pool. This function should only be called within a locked environment. |
|
_LOCKLocking class. By default this is threading.Lock. However, if the pooled object's initializer or destructor (.destroy) are calling back into get_conn or put_conn, it should be RLock.
|
Home | Trees | Indices | Help |
|
---|