Package buildbot :: Package db :: Module dbspec :: Class RetryingConnectionPool
[frames] | no frames]

Class RetryingConnectionPool

source code

twisted.enterprise.adbapi.ConnectionPool --+
                                           |
                                          RetryingConnectionPool

Instance Methods
 
connect(self)
Return a database connection when one becomes available.
source code

Inherited from twisted.enterprise.adbapi.ConnectionPool: __getstate__, __init__, __setstate__, close, disconnect, finalClose, runInteraction, runOperation, runQuery, runWithConnection, start

Class Variables

Inherited from twisted.enterprise.adbapi.ConnectionPool: CP_ARGS, good_sql, max, min, name, noisy, openfun, reconnect, running

Instance Variables

Inherited from twisted.enterprise.adbapi.ConnectionPool: connectionFactory, shutdownID, transactionFactory

Method Details

connect(self)

source code 

Return a database connection when one becomes available.

This method blocks and should be run in a thread from the internal threadpool. Don't call this method directly from non-threaded code. Using this method outside the external threadpool may exceed the maximum number of connections in the pool.

Returns:
a database connection from the pool.
Overrides: twisted.enterprise.adbapi.ConnectionPool.connect
(inherited documentation)