MySQL 9.0.0
Source Code Documentation
Connection_handler Class Referenceabstract

This abstract base class represents how connections are processed, most importantly how they map to OS threads. More...

#include <connection_handler.h>

Inheritance diagram for Connection_handler:
[legend]

Protected Member Functions

 Connection_handler ()=default
 
virtual ~Connection_handler ()=default
 
virtual bool add_connection (Channel_info *channel_info)=0
 Add a connection. More...
 
virtual uint get_max_threads () const =0
 

Friends

class Connection_handler_manager
 

Detailed Description

This abstract base class represents how connections are processed, most importantly how they map to OS threads.

Constructor & Destructor Documentation

◆ Connection_handler()

Connection_handler::Connection_handler ( )
protecteddefault

◆ ~Connection_handler()

virtual Connection_handler::~Connection_handler ( )
protectedvirtualdefault

Member Function Documentation

◆ add_connection()

virtual bool Connection_handler::add_connection ( Channel_info channel_info)
protectedpure virtual

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.

Implemented in Per_thread_connection_handler, One_thread_connection_handler, and Plugin_connection_handler.

◆ get_max_threads()

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

Implemented in Per_thread_connection_handler, One_thread_connection_handler, and Plugin_connection_handler.

Friends And Related Function Documentation

◆ Connection_handler_manager

friend class Connection_handler_manager
friend

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