server.connection_pool ====================== .. py:module:: server.connection_pool Attributes ---------- .. autoapisummary:: server.connection_pool.pond server.connection_pool.factory Classes ------- .. autoapisummary:: server.connection_pool.ClientFactory server.connection_pool.ClientContextManager Module Contents --------------- .. py:class:: ClientFactory(pooled_maxsize: int = 8, least_one: bool = False) Bases: :py:obj:`pond.PooledObjectFactory` .. py:method:: createInstance() -> pond.PooledObject Create a new pooled object. Returns: PooledObject: The new pooled object. .. py:method:: destroy(pooled_object: pond.PooledObject) -> None Destroy the pooled object. Args: pooled_object (PooledObject): The pooled object to be destroyed. .. py:method:: reset(pooled_object: pond.PooledObject) -> pond.PooledObject Reset the pooled object to the initial state. Args: pooled_object (PooledObject): The pooled object to be reset. **kwargs (Any): The arguments to be used to reset the pooled object. Returns: PooledObject: The reset pooled object. .. py:method:: validate(pooled_object: pond.PooledObject) -> bool Validate the pooled object. Args: pooled_object (PooledObject): The pooled object to be reset. Returns: bool: True if the pooled object is valid, otherwise False. If the pooled object is not valid, it will be destroyed. .. py:data:: pond .. py:data:: factory .. py:class:: ClientContextManager .. py:method:: __enter__() -> nntp.NNTPClient .. py:method:: __exit__(exc_type, exc_val, exc_tb) -> None