MySQL 9.1.0
Source Code Documentation
|
pooled connection. More...
#include <connection_pool.h>
Public Types | |
using | Ssl = mysql_harness::Ssl |
using | connection_type = T |
Public Member Functions | |
PooledConnection (connection_type conn) | |
connection_type & | connection () |
access to conn_. More... | |
const connection_type & | connection () const |
void | reset () |
prepares for reusing the connection. More... | |
Public Member Functions inherited from PooledConnectionBase | |
void | remover (std::function< void()> remover) |
set a remove-callback. More... | |
void | remove_me () |
calls remove-callback. More... | |
void | reset () |
Private Member Functions | |
void | async_idle (std::chrono::milliseconds idle_timeout) |
wait for idle timeout. More... | |
void | async_recv_message () |
wait for server message and shutdown. More... | |
Private Attributes | |
connection_type | conn_ |
net::steady_timer | idle_timer_ |
Friends | |
class | ConnectionPool |
pooled connection.
using PooledConnection< T >::connection_type = T |
using PooledConnection< T >::Ssl = mysql_harness::Ssl |
|
inline |
|
inlineprivate |
wait for idle timeout.
|
inlineprivate |
wait for server message and shutdown.
|
inline |
access to conn_.
allows others to move the connection structs out.
|
inline |
|
inline |
prepares for reusing the connection.
|
friend |
|
private |
|
private |