|
iceoryx2
C++ Language 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) |
| PortFactoryServer (const PortFactoryServer &)=delete | |
| PortFactoryServer (PortFactoryServer &&)=default | |
| auto | operator= (const PortFactoryServer &) -> PortFactoryServer &=delete |
| auto | operator= (PortFactoryServer &&) -> PortFactoryServer &=default |
| ~PortFactoryServer ()=default | |
| 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<bb::IsSlice<T>::VALUE, 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 36 of file port_factory_server.hpp.
|
delete |
|
default |
|
default |
|
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 163 of file port_factory_server.hpp.
| auto iox2::PortFactoryServer< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >::backpressure_strategy | ( | const BackpressureStrategy | value | ) | -> decltype(auto) |
|
inline |
Creates a new [Server] or returns a [ServerCreateError] on failure.
Definition at line 207 of file port_factory_server.hpp.
References iox2::detail::backpressure_handler_delegate(), iox2::detail::degradation_handler_delegate(), iox2::bb::err(), and iox2::internal::override_callback().
|
inline |
Sets the maximum initial slice length configured for this [Server].
Definition at line 139 of file port_factory_server.hpp.
| 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].
|
delete |
|
default |
|
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 150 of file port_factory_server.hpp.
|
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].
Server], including the send and receive functions, is accessed from multiple threads, the handler must be thread-safe if it captures data Definition at line 196 of file port_factory_server.hpp.
|
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.
Server], including the send and receive functions, is accessed from multiple threads, the handler must be thread-safe if it captures data Definition at line 174 of file port_factory_server.hpp.
|
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.
Server], including the send and receive functions, is accessed from multiple threads, the handler must be thread-safe if it captures data Definition at line 185 of file port_factory_server.hpp.
|
friend |
Definition at line 120 of file port_factory_server.hpp.