|
iceoryx2
C++ Bindings
|
#include <port_factory_server.hpp>
Public Member Functions | |
| auto | backpressure_strategy (const BackpressureStrategy value) -> decltype(auto) |
| auto | max_loaned_responses_per_request (const uint64_t value) -> decltype(auto) |
| auto | name (const PortName value) -> decltype(auto) |
| PortFactoryServer (PortFactoryServer &&rhs) noexcept | |
| auto | operator= (PortFactoryServer &&rhs) noexcept -> PortFactoryServer & |
| ~PortFactoryServer () | |
| PortFactoryServer (const PortFactoryServer &)=delete | |
| auto | operator= (const PortFactoryServer &) -> PortFactoryServer &=delete |
| auto | override_response_preallocation (const OverridePreallocationCallback &callback) &&-> PortFactoryServer && |
| template<typename T = ResponsePayload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> | |
| auto | initial_max_slice_len (uint64_t value) &&-> PortFactoryServer && |
| Sets the maximum initial slice length configured for this [Server]. | |
| template<typename T = ResponsePayload, typename = std::enable_if_t<has_flatbuffer_marker<T>(), void>> | |
| auto | initial_reserved_memory (uint64_t value) &&-> PortFactoryServer && |
| template<typename T = ResponsePayload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE || has_flatbuffer_marker<T>(), void>> | |
| auto | allocation_strategy (AllocationStrategy value) &&-> PortFactoryServer && |
| auto | set_request_degradation_handler (DegradationHandler *handler) &&-> PortFactoryServer && |
| auto | set_response_degradation_handler (DegradationHandler *handler) &&-> PortFactoryServer && |
| auto | set_backpressure_handler (BackpressureHandler *handler) &&-> PortFactoryServer && |
| auto | create () &&-> bb::Expected< Server< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >, ServerCreateError > |
| Creates a new [Server] or returns a [ServerCreateError] on failure. | |
Friends | |
| template<ServiceType, typename, typename, typename, typename> | |
| class | PortFactoryRequestResponse |
Factory to create a new [Server] port/endpoint for [MessagingPattern::RequestResponse] based communication.
Definition at line 38 of file port_factory_server.hpp.
|
inlinenoexcept |
Definition at line 327 of file port_factory_server.hpp.
References PortFactoryServer().
Referenced by allocation_strategy(), initial_max_slice_len(), initial_reserved_memory(), name(), operator=(), operator=(), override_response_preallocation(), PortFactoryServer(), PortFactoryServer(), set_backpressure_handler(), set_request_degradation_handler(), and set_response_degradation_handler().
|
inline |
Definition at line 363 of file port_factory_server.hpp.
|
delete |
References PortFactoryServer().
|
inline |
Defines the allocation strategy that is used when the provided [PortFactoryServer::initial_max_slice_len()] is exhausted. This happens when the user acquires more than max slice len in [ActiveRequest::loan_slice()] or [ActiveRequest::loan_slice_uninit()].
Definition at line 194 of file port_factory_server.hpp.
References PortFactoryServer().
| auto iox2::PortFactoryServer< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >::backpressure_strategy | ( | const BackpressureStrategy | value | ) | ->decltype(auto) |
Sets the [BackpressureStrategy] which defines how the [Server] shall behave when a [Client] cannot receive a [Response] since its internal buffer is full.
References backpressure_strategy().
Referenced by backpressure_strategy().
|
inline |
Creates a new [Server] or returns a [ServerCreateError] on failure.
Definition at line 238 of file port_factory_server.hpp.
References iox2::detail::backpressure_handler_delegate(), iox2::detail::degradation_handler_delegate(), iox2::bb::err(), iox2::bb::into(), and iox2::internal::override_callback().
|
inline |
Sets the maximum initial slice length configured for this [Server].
Definition at line 158 of file port_factory_server.hpp.
References PortFactoryServer().
|
inline |
Sets the maximum initial reserved memory that the underlying allocator reserves for the flatbuffer builder.
Definition at line 170 of file port_factory_server.hpp.
References PortFactoryServer().
| auto iox2::PortFactoryServer< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >::max_loaned_responses_per_request | ( | const uint64_t | value | ) | ->decltype(auto) |
Defines the maximum number of [ResponseMut] that the [Server] can loan in parallel per [ActiveRequest].
References max_loaned_responses_per_request().
Referenced by max_loaned_responses_per_request().
| auto iox2::PortFactoryServer< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >::name | ( | const PortName | value | ) | ->decltype(auto) |
|
delete |
References PortFactoryServer().
|
inlinenoexcept |
Definition at line 338 of file port_factory_server.hpp.
References PortFactoryServer().
|
inline |
Defines a callback to reduce the number of preallocated [ResponseMut]s. The input argument is the worst case number of preallocated [ResponseMut]s required to guarantee that the [Server] never runs out of [ResponseMut]s to loan and send. The return value is clamped between 1 and the worst case number of preallocated [ResponseMut]s.
If the user reduces the number of preallocated [ResponseMut]s, iceoryx2 can no longer guarantee, that the [Server] can always loan a [ResponseMut] to send.
Definition at line 181 of file port_factory_server.hpp.
References PortFactoryServer().
|
inline |
Sets the [BackpressureHandler] of the [Server]. Whenever a [ResponseMut] cannot be sent to a [Client], this handler is called and depending on the returned [BackpressureAction], measures will be taken. If no handler is set, the measures will be determined by the value set in [BackpressureStrategy].
Definition at line 227 of file port_factory_server.hpp.
References PortFactoryServer().
|
inline |
Sets the [DegradationHandler] for receiving [ActiveRequest]s from a [Client]. Whenever a request connection to a [Client](crate::port::client::Client) is corrupted, this handler is called and depending on the returned [DegradationAction] measures will be taken.
Definition at line 205 of file port_factory_server.hpp.
References PortFactoryServer().
|
inline |
Sets the [DegradationHandler] for sending [ResponseMut]s to a [Client]. Whenever a response connection to a [Client] is corrupted, this handler is called and depending on the returned [DegradationAction] measures will be taken.
Definition at line 216 of file port_factory_server.hpp.
References PortFactoryServer().
|
friend |
Definition at line 138 of file port_factory_server.hpp.
References PortFactoryRequestResponse.
Referenced by PortFactoryRequestResponse.