Package ZenEvents :: Module DbConnectionPool :: Class DbConnectionPool
[hide private]
[frames] | no frames]

Class DbConnectionPool

source code

Queue.Queue --+
              |
             DbConnectionPool

Instance Methods [hide private]
 
__new__(type) source code
 
__init__(self)
Initialize a queue object with a given maximum size.
source code
 
get(self, backend=None, host=None, port=None, username=None, password=None, database=None, block=0)
Remove and return an item from the queue.
source code
 
put(self, obj, block=0)
Put an item into the queue.
source code
 
_createConnection(self, host=None, port=None, username=None, password=None, database=None) source code

Inherited from Queue.Queue: empty, full, get_nowait, put_nowait, qsize

Inherited from Queue.Queue (private): _empty, _full, _get, _init, _put, _qsize

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialize a queue object with a given maximum size.

If maxsize is <= 0, the queue size is infinite.
Overrides: Queue.Queue.__init__
(inherited documentation)

get(self, backend=None, host=None, port=None, username=None, password=None, database=None, block=0)

source code 

Remove and return an item from the queue.

If optional args 'block' is true and 'timeout' is None (the default), block if necessary until an item is available. If 'timeout' is a positive number, it blocks at most 'timeout' seconds and raises the Empty exception if no item was available within that time. Otherwise ('block' is false), return an item if one is immediately available, else raise the Empty exception ('timeout' is ignored in that case).
Overrides: Queue.Queue.get
(inherited documentation)

put(self, obj, block=0)

source code 

Put an item into the queue.

If optional args 'block' is true and 'timeout' is None (the default), block if necessary until a free slot is available. If 'timeout' is a positive number, it blocks at most 'timeout' seconds and raises the Full exception if no free slot was available within that time. Otherwise ('block' is false), put an item on the queue if a free slot is immediately available, else raise the Full exception ('timeout' is ignored in that case).
Overrides: Queue.Queue.put
(inherited documentation)