pymongo::connection::_Pool Class Reference

List of all members.

Public Member Functions

def __init__
def return_socket
def socket

Public Attributes


Static Public Attributes

 sock = None

Static Private Attributes

list __slots__ = ["sockets", "socket_factory", "pool_size", "pid"]

Detailed Description

A simple connection pool.

Uses thread-local socket per thread. By calling return_socket() a
thread can return a socket to the pool. Right now the pool size is
capped at 10 sockets - we can expose this as a parameter later, if

Definition at line 151 of file

Member Function Documentation

def pymongo::connection::_Pool::__init__ (   self,

Definition at line 166 of file

def pymongo::connection::_Pool::return_socket (   self  ) 

Definition at line 195 of file

def pymongo::connection::_Pool::socket (   self  ) 

Definition at line 174 of file

Member Data Documentation

list pymongo::connection::_Pool::__slots__ = ["sockets", "socket_factory", "pool_size", "pid"] [static, private]

Definition at line 161 of file

Definition at line 167 of file

Definition at line 168 of file

Definition at line 164 of file

Definition at line 169 of file

Definition at line 171 of file

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Author(s): Bhaskara Marthi
autogenerated on Fri Jan 11 10:09:06 2013