![]() |
MySQL 26.7.0
Source Code Documentation
|
Represents the identifier of a task ingested by the scheduler,. More...
#include <task_id.h>
Public Member Functions | |
| Task_id (std::size_t id) | |
| Creates scheduler task identifier using given id. More... | |
| bool | operator< (const Task_id &other) const |
| Compares tasks ids. More... | |
| bool | is_valid () const |
| Returns an information on whether task id has been set to a valid id. More... | |
| uint64_t | get () const |
| bool | operator== (const Task_id &src) const |
| Comparison operator required by unordered set/unordered map... More... | |
Private Attributes | |
| std::size_t | m_id |
| Internal transaction identifier. More... | |
| bool | m_is_valid = false |
| Id validity, false means that id has not been set. More... | |
Friends | |
| class | Scheduler |
| std::ostream & | operator<< (std::ostream &os, const Task_id &obj) |
| Streaming operator. More... | |
Represents the identifier of a task ingested by the scheduler,.
Uses an internal sequence number for lightweight, format-agnostic tracking.
| mysql::scheduler::Task_id::Task_id | ( | std::size_t | id | ) |
Creates scheduler task identifier using given id.
| id | Internally assigned sequence number |
|
inline |
|
inline |
Returns an information on whether task id has been set to a valid id.
| bool mysql::scheduler::Task_id::operator< | ( | const Task_id & | other | ) | const |
Compares tasks ids.
| other | Task id to compare against |
| bool mysql::scheduler::Task_id::operator== | ( | const Task_id & | src | ) | const |
Comparison operator required by unordered set/unordered map...
|
friend |
Streaming operator.
|
friend |
|
private |
Internal transaction identifier.
|
private |
Id validity, false means that id has not been set.