13#ifndef IOX2_SERVICE_EVENT_BUILDER_HPP
14#define IOX2_SERVICE_EVENT_BUILDER_HPP
31template <ServiceType S>
37#ifdef DOXYGEN_MACRO_FIX
38 auto max_nodes(
const uint64_t value) ->
decltype(
auto);
46#ifdef DOXYGEN_MACRO_FIX
55#ifdef DOXYGEN_MACRO_FIX
64#ifdef DOXYGEN_MACRO_FIX
130 template <ServiceType>
135 void set_parameters();
137 iox2_service_builder_event_h m_handle =
nullptr;
143 bool m_verify_notifier_dead_event =
false;
144 bool m_verify_notifier_created_event =
false;
145 bool m_verify_notifier_dropped_event =
false;
146 bool m_verify_deadline =
false;
#define IOX2_BUILDER_OPTIONAL(type, name)
Type that allows to identify an event uniquely.
Builder to create new [MessagingPattern::Event] based [Service]s.
auto max_listeners(const uint64_t value) -> decltype(auto)
auto notifier_created_event(EventId event_id) &&-> ServiceBuilderEvent &&
auto create_with_attributes(const AttributeSpecifier &attributes) &&-> bb::Expected< PortFactoryEvent< S >, EventCreateError >
Creates a new [Service] with a set of attributes.
auto disable_notifier_dropped_event() &&-> ServiceBuilderEvent &&
If the [Service] is created it disables sending an event when a notifier was dropped.
auto notifier_dead_event(EventId event_id) &&-> ServiceBuilderEvent &&
auto max_notifiers(const uint64_t value) -> decltype(auto)
auto open() &&-> bb::Expected< PortFactoryEvent< S >, EventOpenError >
Opens an existing [Service].
auto create() &&-> bb::Expected< PortFactoryEvent< S >, EventCreateError >
Creates a new [Service].
auto open_with_attributes(const AttributeVerifier &required_attributes) &&-> bb::Expected< PortFactoryEvent< S >, EventOpenError >
auto event_id_max_value(const uint64_t value) -> decltype(auto)
auto notifier_dropped_event(EventId event_id) &&-> ServiceBuilderEvent &&
auto max_nodes(const uint64_t value) -> decltype(auto)
auto disable_deadline() &&-> ServiceBuilderEvent &&
auto open_or_create_with_attributes(const AttributeVerifier &required_attributes) &&-> bb::Expected< PortFactoryEvent< S >, EventOpenOrCreateError >
auto deadline(iox2::bb::Duration deadline) &&-> ServiceBuilderEvent &&
auto disable_notifier_created_event() &&-> ServiceBuilderEvent &&
If the [Service] is created it disables sending an event when a new notifier was created.
auto disable_notifier_dead_event() &&-> ServiceBuilderEvent &&
auto open_or_create() &&-> bb::Expected< PortFactoryEvent< S >, EventOpenOrCreateError >
Builder to create or open [Service]s.
iox2::bb::variation::Optional< T > Optional
iox2::bb::variation::Expected< T, E > Expected
EventCreateError
Failures that can occur when a new [MessagingPattern::Event] [Service] shall be created.
EventOpenError
Failures that can occur when an existing [MessagingPattern::Event] [Service] shall be opened.