tntdb  1.1
tntdb::ConnectionPools Class Reference

List of all members.

Public Types

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

Public Member Functions

 ConnectionPools (unsigned maxcount_=0)
Connection connect (const std::string &url)
void drop (unsigned keep=0)
 Releases unused connections.
void drop (const std::string &url, unsigned keep=0)
 Releases unused connections, which match the given url.
unsigned getMaximumSize ()
void setMaximumSize (unsigned m)
unsigned getCurrentSize (const std::string &url) const

Member Function Documentation

void tntdb::ConnectionPools::drop ( unsigned  keep = 0)

Releases unused connections.

Keeps the given number of connections.

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

Releases unused connections, which match the given url.

Keeps the given number of connections.


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