Trees | Indices | Help |
|
---|
|
Implements a simple (thread-safe) connection pool for Scalaris connections.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Create a new connection pool with the given maximum number of connections.
|
Creates a new connection for the pool. Override this to use some other connection class than JSONConnection. |
Gets a connection from the pool. Creates a new connection if necessary. Returns <tt>None</tt> if the maximum number of connections has already been hit. |
Tries to get a valid connection from the pool waiting at most the given timeout. If timeout is an integer, it will be interpreted as a number of milliseconds. Alternatively, timeout can be given as a datetime.timedelta. Creates a new connection if necessary and the maximum number of connections has not been hit yet. If the timeout is hit and no connection is available, <tt>None</tt> is returned. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Sep 11 13:08:35 2020 | http://epydoc.sourceforge.net |