Public Member Functions | |
| ConnectionPoolImpl (te::pgis::DataSource *ds) | |
| ~ConnectionPoolImpl () | |
Public Attributes | |
| std::vector< int > | m_availableConnectionsIds |
| A vector with the ids of available connections. More... | |
| 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::DataSource * | m_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... | |
Definition at line 51 of file ConnectionPool.cpp.
|
inline |
Definition at line 55 of file ConnectionPool.cpp.
|
inline |
Definition at line 66 of file ConnectionPool.cpp.
References te::common::FreeContents(), and m_connections.
| std::vector<int> te::pgis::ConnectionPool::ConnectionPoolImpl::m_availableConnectionsIds |
A vector with the ids of available connections.
Definition at line 82 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::finalize(), te::pgis::ConnectionPool::getAvailableConnectionId(), and te::pgis::ConnectionPool::setConnectionInUse().
| std::string te::pgis::ConnectionPool::ConnectionPoolImpl::m_cencoding |
Client encoding.
Definition at line 72 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::getConnection(), and 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 79 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::finalize(), te::pgis::ConnectionPool::getConnection(), te::pgis::ConnectionPool::getConnectionById(), te::pgis::ConnectionPool::idle(), te::pgis::ConnectionPool::initialize(), te::pgis::ConnectionPool::isValid(), te::pgis::ConnectionPool::setConnectionInUse(), and ~ConnectionPoolImpl().
| std::string te::pgis::ConnectionPool::ConnectionPoolImpl::m_conninfo |
The connection info.
Definition at line 71 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::getConnection(), and te::pgis::ConnectionPool::initialize().
| te::pgis::DataSource* te::pgis::ConnectionPool::ConnectionPoolImpl::m_ds |
The data source using the pool.
Definition at line 73 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::getDataSource(), and 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 81 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::finalize(), te::pgis::ConnectionPool::initialize(), and te::pgis::ConnectionPool::isInitialized().
| std::size_t te::pgis::ConnectionPool::ConnectionPoolImpl::m_initialPoolSize |
It indicates the initial number of connections opened by the pool.
Definition at line 74 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::getInitialPoolSize(), te::pgis::ConnectionPool::initialize(), and te::pgis::ConnectionPool::setInitialPoolSize().
| unsigned int te::pgis::ConnectionPool::ConnectionPoolImpl::m_maxIdleTime |
The number of seconds waiting for releasing connections.
Definition at line 78 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::getConnection(), te::pgis::ConnectionPool::getMaxIdleTime(), te::pgis::ConnectionPool::idle(), te::pgis::ConnectionPool::initialize(), and te::pgis::ConnectionPool::setMaxIdleTime().
| std::size_t te::pgis::ConnectionPool::ConnectionPoolImpl::m_maxPoolSize |
It indicates the maximum number of connections in the pool.
Definition at line 76 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::getConnection(), te::pgis::ConnectionPool::getMaxPoolSize(), te::pgis::ConnectionPool::idle(), te::pgis::ConnectionPool::initialize(), and te::pgis::ConnectionPool::setMaxPoolSize().
| std::size_t te::pgis::ConnectionPool::ConnectionPoolImpl::m_minPoolSize |
It indicates the minimum number of connections in the pool.
Definition at line 75 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::getMinPoolSize(), te::pgis::ConnectionPool::idle(), te::pgis::ConnectionPool::initialize(), and te::pgis::ConnectionPool::setMinPoolSize().
| boost::mutex te::pgis::ConnectionPool::ConnectionPoolImpl::m_mtx |
A mutex for preventing reading/writing in the connection list.
Definition at line 80 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::finalize(), te::pgis::ConnectionPool::getConnection(), te::pgis::ConnectionPool::idle(), te::pgis::ConnectionPool::initialize(), te::pgis::ConnectionPool::isValid(), te::pgis::ConnectionPool::release(), te::pgis::ConnectionPool::setInitialPoolSize(), te::pgis::ConnectionPool::setMaxIdleTime(), te::pgis::ConnectionPool::setMaxPoolSize(), and te::pgis::ConnectionPool::setMinPoolSize().
| std::size_t te::pgis::ConnectionPool::ConnectionPoolImpl::m_poolSize |
It indicates the maximum number of connections in the pool.
Definition at line 77 of file ConnectionPool.cpp.
Referenced by te::pgis::ConnectionPool::finalize(), te::pgis::ConnectionPool::getConnection(), te::pgis::ConnectionPool::getPoolSize(), te::pgis::ConnectionPool::idle(), and te::pgis::ConnectionPool::initialize().