3 #ifndef FIRE_GIS_DATA_CONNECTIONPOOL_HPP_INCLUDED
4 #define FIRE_GIS_DATA_CONNECTIONPOOL_HPP_INCLUDED
10 #include "fire/source/shared/ConnectionSh.hpp"
28 ConnectionPool(
const std::string & cnnNmsp,
const source::Connection::ConnectionParams& cnnPars,
const int& num,
const std::string &
id =
"");
56 std::string
getId()
const;
59 typedef std::vector< source::Connection::ConnectionShp > VctConnectionShp;
61 std::string _buildPoolId(
const source::Connection::ConnectionParams& cnnPars)
const;
65 VctConnectionShp _cnns;
66 mutable boost::mutex _mtx;
67 source::Connection::ConnectionParams _params;
Gestore di connessioni idempotenti verso una sorgente dati.
Definition: ConnectionPool.hpp:18
void close()
Chiude il ConnectionPool e tutte le connessioni.
virtual ~ConnectionPool()
Distruttore oggetto.
size_t getCount() const
Numero di connessioni totali presenti nel pool.
std::string getId() const
Chiave univoca a livello di sessione dell'istanza di ConnectionPool.
Definition: ConnectionSh.hpp:21
ConnectionPool(const std::string &cnnNmsp, const source::Connection::ConnectionParams &cnnPars, const int &num, const std::string &id="")
Costruttore oggetto.