|
constexpr | message_id () |
| Constructs a message ID for asynchronous messages with normal priority.
|
|
constexpr | message_id (uint64_t value) |
|
| message_id (const message_id &)=default |
|
message_id & | operator= (const message_id &)=default |
|
constexpr uint64_t | category () const noexcept |
| Returns the message category, i.e., one of normal_message_category , upstream_message_category , downstream_message_category , or urgent_message_category .
|
|
constexpr message_id | with_category (uint64_t x) const noexcept |
| Returns a new message ID with given category.
|
|
constexpr bool | is_async () const noexcept |
| Returns whether a message is asynchronous, i.e., neither a request, nor a response, nor a stream message.
|
|
constexpr bool | is_request () const noexcept |
| Returns whether a message is a request.
|
|
constexpr bool | is_response () const noexcept |
| Returns whether a message is a response to a previously send request.
|
|
constexpr bool | is_answered () const noexcept |
| Returns whether a message is tagged as answered by the receiving actor.
|
|
constexpr bool | is_urgent_message () const noexcept |
| Returns whether category() == urgent_message_category .
|
|
constexpr bool | is_normal_message () const noexcept |
| Returns whether category() == normal_message_category .
|
|
constexpr bool | is_stream_message () const noexcept |
| Returns whether category() is an up- or downstream message.
|
|
constexpr bool | is_upstream_message () const noexcept |
| Returns whether category() == upstream_message_category .
|
|
constexpr bool | is_downstream_message () const noexcept |
| Returns whether category() == downstream_message_category .
|
|
constexpr message_id | response_id () const noexcept |
| Returns a response ID for the current request or an asynchronous ID with the same priority as this ID.
|
|
constexpr message_id | request_id () const noexcept |
| Extracts the request number part of this ID.
|
|
constexpr message_id | with_high_priority () const noexcept |
| Returns the same ID but high message priority. More...
|
|
constexpr message_id | with_normal_priority () const noexcept |
| Returns the same ID with normal message priority. More...
|
|
constexpr uint64_t | integer_value () const noexcept |
| Returns the "raw bytes" for this ID.
|
|
constexpr int64_t | compare (const message_id &other) const noexcept |
| Returns a negative value if *this < other , zero if *this == other , and a positive value otherwise.
|
|
void | mark_as_answered () noexcept |
| Sets the flag for marking an incoming message as answered.
|
|
message_id & | operator++ () noexcept |
|
Bundles various flags along with an optional request ID.