10using TLocalActorId = uint32_t;
13using TNodeId = uint16_t;
16using TCookie = uint16_t;
19using TMessageId = uint32_t;
44 operator bool()
const {
45 return !((NodeId_ == 0) & (ActorId_ == 0) & (Cookie_ == 0));
69 + std::to_string(NodeId_) +
":"
70 + std::to_string(ActorId_) +
":"
71 + std::to_string(Cookie_);
80 TActorId(TNodeId nodeId, TLocalActorId actorId, TCookie cookie)
87 TLocalActorId ActorId_ = 0;
Globally unique identifier for actors across a distributed system.
Definition actorid.hpp:32
bool operator==(const TActorId &) const noexcept=default
Compares node, local actor identifier, and incarnation cookie.
TNodeId NodeId() const
Get the node ID component.
Definition actorid.hpp:49
TCookie Cookie() const
Get the cookie component.
Definition actorid.hpp:59
TActorId()=default
Default constructor creates an invalid actor ID.
TActorId(TNodeId nodeId, TLocalActorId actorId, TCookie cookie)
Construct actor ID with specific components.
Definition actorid.hpp:80
std::string ToString() const
Convert actor ID to a human-readable string.
Definition actorid.hpp:67
TLocalActorId ActorId() const
Get the local actor ID component.
Definition actorid.hpp:54