All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::pgis::ConnectionPool::ConnectionPoolImpl Class Reference

Public Member Functions

 ConnectionPoolImpl (te::pgis::DataSource *ds)
 
 ~ConnectionPoolImpl ()
 

Public Attributes

std::string m_cencoding
 Client encoding. More...
 
std::list< te::pgis::Connection * > m_connections
 The list of available connections ready to be used. More...
 
std::string m_conninfo
 The connection info. More...
 
te::pgis::DataSourcem_ds
 The data source using the pool. More...
 
bool m_initialized
 A flag that indicates if the pool was initialized or not. More...
 
std::size_t m_initialPoolSize
 It indicates the initial number of connections opened by the pool. More...
 
unsigned int m_maxIdleTime
 The number of seconds waiting for releasing connections. More...
 
std::size_t m_maxPoolSize
 It indicates the maximum number of connections in the pool. More...
 
std::size_t m_minPoolSize
 It indicates the minimum number of connections in the pool. More...
 
boost::mutex m_mtx
 A mutex for preventing reading/writing in the connection list. More...
 
std::size_t m_poolSize
 It indicates the maximum number of connections in the pool. More...
 

Detailed Description

Definition at line 47 of file ConnectionPool.cpp.

Constructor & Destructor Documentation

te::pgis::ConnectionPool::ConnectionPoolImpl::ConnectionPoolImpl ( te::pgis::DataSource ds)
inline

Definition at line 51 of file ConnectionPool.cpp.

te::pgis::ConnectionPool::ConnectionPoolImpl::~ConnectionPoolImpl ( )
inline

Definition at line 62 of file ConnectionPool.cpp.

References te::common::FreeContents(), and m_connections.

Member Data Documentation

std::string te::pgis::ConnectionPool::ConnectionPoolImpl::m_cencoding

Client encoding.

Definition at line 68 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

std::list<te::pgis::Connection*> te::pgis::ConnectionPool::ConnectionPoolImpl::m_connections

The list of available connections ready to be used.

Definition at line 75 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize(), and ~ConnectionPoolImpl().

std::string te::pgis::ConnectionPool::ConnectionPoolImpl::m_conninfo

The connection info.

Definition at line 67 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

te::pgis::DataSource* te::pgis::ConnectionPool::ConnectionPoolImpl::m_ds

The data source using the pool.

Definition at line 69 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

bool te::pgis::ConnectionPool::ConnectionPoolImpl::m_initialized

A flag that indicates if the pool was initialized or not.

Definition at line 77 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

std::size_t te::pgis::ConnectionPool::ConnectionPoolImpl::m_initialPoolSize

It indicates the initial number of connections opened by the pool.

Definition at line 70 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

unsigned int te::pgis::ConnectionPool::ConnectionPoolImpl::m_maxIdleTime

The number of seconds waiting for releasing connections.

Definition at line 74 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

std::size_t te::pgis::ConnectionPool::ConnectionPoolImpl::m_maxPoolSize

It indicates the maximum number of connections in the pool.

Definition at line 72 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

std::size_t te::pgis::ConnectionPool::ConnectionPoolImpl::m_minPoolSize

It indicates the minimum number of connections in the pool.

Definition at line 71 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

boost::mutex te::pgis::ConnectionPool::ConnectionPoolImpl::m_mtx

A mutex for preventing reading/writing in the connection list.

Definition at line 76 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().

std::size_t te::pgis::ConnectionPool::ConnectionPoolImpl::m_poolSize

It indicates the maximum number of connections in the pool.

Definition at line 73 of file ConnectionPool.cpp.

Referenced by te::pgis::ConnectionPool::initialize().


The documentation for this class was generated from the following file: