tntdb::ConnectionPools Class Reference

#include <tntdb/connectionpool.h>

Public Types

typedef ConnectionPool PoolType
typedef std::map< std::string,
PoolType * > 
PoolsType

Public Member Functions

 ConnectionPools (unsigned maxcount_=0)
 ~ConnectionPools ()
Connection connect (const std::string &url)
void drop (unsigned keep=0)
 Release unused connections; keep the given number of connections.
void drop (const std::string &url, unsigned keep=0)
 Release unused connections with the given database url; keep the given number of connections.
unsigned getMaximumSize ()
void setMaximumSize (unsigned m)
unsigned getCurrentSize (const std::string &url) const

Member Typedef Documentation

typedef std::map<std::string, PoolType*> tntdb::ConnectionPools::PoolsType

Constructor & Destructor Documentation

tntdb::ConnectionPools::ConnectionPools ( unsigned  maxcount_ = 0)
inlineexplicit
tntdb::ConnectionPools::~ConnectionPools ( )

Member Function Documentation

Connection tntdb::ConnectionPools::connect ( const std::string &  url)
void tntdb::ConnectionPools::drop ( unsigned  keep = 0)

Release unused connections; keep the given number of connections.

void tntdb::ConnectionPools::drop ( const std::string &  url,
unsigned  keep = 0 
)

Release unused connections with the given database url; keep the given number of connections.

unsigned tntdb::ConnectionPools::getCurrentSize ( const std::string &  url) const
unsigned tntdb::ConnectionPools::getMaximumSize ( )
inline
void tntdb::ConnectionPools::setMaximumSize ( unsigned  m)

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