MySQL 9.1.0
Source Code Documentation
Plugin_connection_handler Class Reference

This is a wrapper class around global free functions implemented by connection handler plugins (e.g. More...

#include <plugin_connection_handler.h>

Inheritance diagram for Plugin_connection_handler:
[legend]

Public Member Functions

 Plugin_connection_handler (Connection_handler_functions *functions)
 
 ~Plugin_connection_handler () override
 

Protected Member Functions

bool add_connection (Channel_info *channel_info) override
 Add a connection. More...
 
uint get_max_threads () const override
 
- Protected Member Functions inherited from Connection_handler
 Connection_handler ()=default
 
virtual ~Connection_handler ()=default
 

Private Member Functions

 Plugin_connection_handler (const Plugin_connection_handler &)
 
Plugin_connection_handleroperator= (const Plugin_connection_handler &)
 

Private Attributes

Connection_handler_functionsm_functions
 

Detailed Description

This is a wrapper class around global free functions implemented by connection handler plugins (e.g.

thread pool). So instead of plugins implementing a Connection_handler subclass, they supply a set of function pointers to my_connection_handler_set() which instantiates Plugin_connection_handler.

See also
Connection_handler_functions struct.

Constructor & Destructor Documentation

◆ Plugin_connection_handler() [1/2]

Plugin_connection_handler::Plugin_connection_handler ( const Plugin_connection_handler )
private

◆ Plugin_connection_handler() [2/2]

Plugin_connection_handler::Plugin_connection_handler ( Connection_handler_functions functions)
inline

◆ ~Plugin_connection_handler()

Plugin_connection_handler::~Plugin_connection_handler ( )
inlineoverride

Member Function Documentation

◆ add_connection()

bool Plugin_connection_handler::add_connection ( Channel_info channel_info)
inlineoverrideprotectedvirtual

Add a connection.

Parameters
channel_infoPointer to the Channel_info object.
Note
If this function is successful (returns false), the ownership of channel_info is transferred. Otherwise the caller is responsible for its destruction.
Returns
true if processing of the new connection failed, false otherwise.

Implements Connection_handler.

◆ get_max_threads()

uint Plugin_connection_handler::get_max_threads ( ) const
inlineoverrideprotectedvirtual
Returns
Maximum number of threads that can be created by this connection handler.

Implements Connection_handler.

◆ operator=()

Plugin_connection_handler & Plugin_connection_handler::operator= ( const Plugin_connection_handler )
private

Member Data Documentation

◆ m_functions

Connection_handler_functions* Plugin_connection_handler::m_functions
private

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