MySQL 8.0.40
Source Code Documentation
One_thread_connection_handler Class Reference

This class represents the connection handling functionality of all connections being handled in a single worker thread. More...

#include <connection_handler_impl.h>

Inheritance diagram for One_thread_connection_handler:
[legend]

Public Member Functions

 One_thread_connection_handler ()=default
 
 ~One_thread_connection_handler () override=default
 

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

 One_thread_connection_handler (const One_thread_connection_handler &)
 
One_thread_connection_handleroperator= (const One_thread_connection_handler &)
 

Detailed Description

This class represents the connection handling functionality of all connections being handled in a single worker thread.

Constructor & Destructor Documentation

◆ One_thread_connection_handler() [1/2]

One_thread_connection_handler::One_thread_connection_handler ( const One_thread_connection_handler )
private

◆ One_thread_connection_handler() [2/2]

One_thread_connection_handler::One_thread_connection_handler ( )
default

◆ ~One_thread_connection_handler()

One_thread_connection_handler::~One_thread_connection_handler ( )
overridedefault

Member Function Documentation

◆ add_connection()

bool One_thread_connection_handler::add_connection ( Channel_info channel_info)
overrideprotectedvirtual

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 One_thread_connection_handler::get_max_threads ( ) const
inlineoverrideprotectedvirtual
Returns
Maximum number of threads that can be created by this connection handler.

Implements Connection_handler.

◆ operator=()

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

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