![]() |
MySQL 26.7.0
Source Code Documentation
|
Schedule factory class - creates task schedule object pointer based on input parameters. More...
#include <schedule_factory.h>
Public Member Functions | |
| Schedule_factory (Scheduler_clock_ptr clock_ptr) | |
| Constructor. More... | |
| Schedule_factory (Scheduler_clock_ptr clock_ptr, Scheduler_clock_ptr phase_clock) | |
| Task_schedule_ptr | create (Task_id task_id, uint64_t delay) const |
| create More... | |
| Task_schedule_ptr | create (Task_id task_id) const |
| clock disabled More... | |
| Task_schedule_ptr | create (Task_id task_id, uint64_t delay, bool is_trx) |
| virtual | ~Schedule_factory ()=default |
| Destructor. More... | |
Private Attributes | |
| Scheduler_clock_ptr | m_clock |
| Scheduler_clock_ptr | m_phase_clock |
| uint64_t | m_phase_delay {0} |
Schedule factory class - creates task schedule object pointer based on input parameters.
Creates tasks starting from arbitrary point of time (steady_clock point of time)
| mysql::scheduler::Schedule_factory::Schedule_factory | ( | Scheduler_clock_ptr | clock_ptr | ) |
Constructor.
| clock_ptr | Clock based on which schedules will be created |
| mysql::scheduler::Schedule_factory::Schedule_factory | ( | Scheduler_clock_ptr | clock_ptr, |
| Scheduler_clock_ptr | phase_clock | ||
| ) |
| clock_ptr | Clock based on which schedules will be created |
| phase_clock | Clock based on which schedule for the second task phase will be created (to support Transaction_order_schedule) |
|
virtualdefault |
Destructor.
| Task_schedule_ptr mysql::scheduler::Schedule_factory::create | ( | Task_id | task_id | ) | const |
clock disabled
Creates one-shot task schedule
| Task_schedule_ptr mysql::scheduler::Schedule_factory::create | ( | Task_id | task_id, |
| uint64_t | delay | ||
| ) | const |
create
Creates one-shot task schedule
| Task_schedule_ptr mysql::scheduler::Schedule_factory::create | ( | Task_id | task_id, |
| uint64_t | delay, | ||
| bool | is_trx | ||
| ) |
Creates transaction task schedule
|
private |
|
private |
|
private |