MySQL 9.1.0
Source Code Documentation
ConnectionPool::ConnectionCloser Class Reference

#include <connection_pool.h>

Public Member Functions

 ConnectionCloser (ConnectionPool::ServerSideConnection conn)
 
void async_close ()
 
void async_send_quit ()
 
void await_quit_response (std::error_code ec, size_t transferred)
 
ConnectionPool::ServerSideConnectionconnection ()
 
void before_close (std::function< void(const ConnectionPool::ServerSideConnection &)> cb)
 

Private Attributes

ConnectionPool::ServerSideConnection conn_
 
std::function< void(const ConnectionPool::ServerSideConnection &)> before_close_
 

Constructor & Destructor Documentation

◆ ConnectionCloser()

ConnectionPool::ConnectionCloser::ConnectionCloser ( ConnectionPool::ServerSideConnection  conn)
inline

Member Function Documentation

◆ async_close()

void ConnectionPool::ConnectionCloser::async_close ( )

◆ async_send_quit()

void ConnectionPool::ConnectionCloser::async_send_quit ( )

◆ await_quit_response()

void ConnectionPool::ConnectionCloser::await_quit_response ( std::error_code  ec,
size_t  transferred 
)

◆ before_close()

void ConnectionPool::ConnectionCloser::before_close ( std::function< void(const ConnectionPool::ServerSideConnection &)>  cb)
inline

◆ connection()

ConnectionPool::ServerSideConnection & ConnectionPool::ConnectionCloser::connection ( )
inline

Member Data Documentation

◆ before_close_

std::function<void(const ConnectionPool::ServerSideConnection &)> ConnectionPool::ConnectionCloser::before_close_
private

◆ conn_

ConnectionPool::ServerSideConnection ConnectionPool::ConnectionCloser::conn_
private

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