tntdb::ConnectionPool Class Reference

#include <tntdb/connectionpool.h>

Classes

class  Connector

Public Types

typedef PoolType::Ptr PoolObjectType

Public Member Functions

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

Member Typedef Documentation

Constructor & Destructor Documentation

tntdb::ConnectionPool::ConnectionPool ( const std::string &  url,
unsigned  maxcount = 0 
)
inlineexplicit

Member Function Documentation

Connection tntdb::ConnectionPool::connect ( )
void tntdb::ConnectionPool::drop ( unsigned  keep = 0)
inline

Release unused connections; keep the given number of connections.

unsigned tntdb::ConnectionPool::getCurrentSize ( ) const
inline
unsigned tntdb::ConnectionPool::getMaximumSize ( )
inline
void tntdb::ConnectionPool::setMaximumSize ( unsigned  m)
inline

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