![]() |
MySQL 26.10.0
Source Code Documentation
|
Coordinates asynchronous reloads of TLS material owned by Router plugins. More...
#include <tls_reload_component.h>
Classes | |
| class | Impl |
Public Types | |
| using | Result = stdx::expected< void, std::string > |
| using | Callback = std::function< Result()> |
| using | RegistrationId = std::size_t |
Public Member Functions | |
| TlsReloadComponent (const TlsReloadComponent &)=delete | |
| TlsReloadComponent & | operator= (const TlsReloadComponent &)=delete |
| void | init () |
| Starts the worker. More... | |
| void | stop () |
| Stops and joins the worker before plugin TLS state is destroyed. More... | |
| RegistrationId | register_callback (std::string owner, Callback callback) |
| void | unregister_callback (RegistrationId id) |
| void | request_reload () |
| Queues a reload without performing TLS I/O in the caller's context. More... | |
Static Public Member Functions | |
| static TlsReloadComponent & | get_instance () |
Static Public Attributes | |
| static constexpr RegistrationId | kInvalidRegistrationId {0} |
Private Member Functions | |
| TlsReloadComponent () | |
| ~TlsReloadComponent () | |
Private Attributes | |
| std::mutex | impl_mtx_ |
| std::shared_ptr< Impl > | impl_ |
| RegistrationId | next_id_ {kInvalidRegistrationId + 1} |
Coordinates asynchronous reloads of TLS material owned by Router plugins.
| using mysql_harness::TlsReloadComponent::Callback = std::function<Result()> |
| using mysql_harness::TlsReloadComponent::RegistrationId = std::size_t |
| using mysql_harness::TlsReloadComponent::Result = stdx::expected<void, std::string> |
|
delete |
|
private |
|
private |
|
static |
| void mysql_harness::TlsReloadComponent::init | ( | ) |
Starts the worker.
|
delete |
| TlsReloadComponent::RegistrationId mysql_harness::TlsReloadComponent::register_callback | ( | std::string | owner, |
| Callback | callback | ||
| ) |
| void mysql_harness::TlsReloadComponent::request_reload | ( | ) |
Queues a reload without performing TLS I/O in the caller's context.
| void mysql_harness::TlsReloadComponent::stop | ( | ) |
Stops and joins the worker before plugin TLS state is destroyed.
| void mysql_harness::TlsReloadComponent::unregister_callback | ( | RegistrationId | id | ) |
|
private |
|
private |
|
staticconstexpr |
|
private |