![]() |
MySQL 26.7.0
Source Code Documentation
|
Interface for all transaction providers. More...
#include <transaction_provider.h>
Public Types | |
| using | Common_reader_type = Relay_log_adaptive_reader |
Public Member Functions | |
| virtual Job_ptr | next ()=0 |
| Get the next job. More... | |
| virtual bool | is_stopped () const =0 |
| Checks whether provider has been stopped externally or internally. More... | |
| virtual void | start ()=0 |
| Start provider (if asynchronous) More... | |
| virtual void | stop ()=0 |
| Stop provider and wake blocked reader calls. More... | |
| virtual void | finish ()=0 |
| Complete provider shutdown from the owner thread (transaction receiver). More... | |
| virtual bool | is_error () const =0 |
| Check if provider has an error. More... | |
| virtual | ~Transaction_provider ()=default |
| Destructor. More... | |
Interface for all transaction providers.
Transaction provider shall implement the following methods:
|
virtualdefault |
Destructor.
|
pure virtual |
Complete provider shutdown from the owner thread (transaction receiver).
Requires stop to have been called first; otherwise it is a no-op.
Implemented in mysql::csa::Sync_transaction_provider.
|
pure virtual |
Check if provider has an error.
Implemented in mysql::csa::Sync_transaction_provider.
|
pure virtual |
Checks whether provider has been stopped externally or internally.
True if stopped, false otherwise
Implemented in mysql::csa::Sync_transaction_provider.
|
pure virtual |
|
pure virtual |
Start provider (if asynchronous)
Implemented in mysql::csa::Sync_transaction_provider.
|
pure virtual |
Stop provider and wake blocked reader calls.
Implemented in mysql::csa::Sync_transaction_provider.