#include <ozo/connection_pool.h>
Connection pool configuration.
Configuration of the ozo::connection_pool
, e.g. how many connection are in the pool, how many queries can be in wait queue if all connections are used by another queries, and how long to keep connection open.
Public Attributes | |
std::size_t | capacity = 10 |
maximum number of stored connections | |
std::size_t | queue_capacity = 128 |
maximum number of queued requests to get available connection | |
time_traits::duration | idle_timeout = std::chrono::seconds(60) |
time interval to close connection after last usage | |
time_traits::duration | lifespan = std::chrono::hours(24) |
time interval to keep connection open | |