l.s.l.s.ConnectionPool : class documentation

Part of lp.services.librarianserver.swift View In Hierarchy

No class docstring
Method __init__ Undocumented
Method clear Undocumented
Method get Return a conection from the pool, or a fresh connection.
Method put Put a connection back in the pool for reuse.
Method _new_connection Undocumented
def __init__(self):
Undocumented
def clear(self):
Undocumented
def get(self):
Return a conection from the pool, or a fresh connection.
def put(self, swift_connection):
Put a connection back in the pool for reuse.

Only call this if the connection is in a usable state. If an exception has been raised (apart from a 404), don't trust the swift_connection and throw it away.

def _new_connection(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.