Class EventBus::Registration

Nested Relationships

This class is a nested type of Class EventBus.

Class Documentation

class Registration

Declaration: final

A copyable, bus-qualified identifier, not a subscription owner.

Discarding this value does not remove the persistent listener.

Public Functions

Registration() = default

Create an empty non-owning registration identifier; it owns no listener.

See also

Detailed guide

inline std::uint64_t id() const

Declaration: [[nodiscard]]

Read the bus-local listener ID; zero denotes the default empty identifier.

See also

Detailed guide

inline ::CE::Diagnostics::DomainId bus_id() const

Declaration: [[nodiscard]]

Read the originating bus diagnostic identity for correlation, not persistence.

See also

Detailed guide

bool disconnect() const

Invalidate without retaining or borrowing the bus facade.

Running callbacks may finish.