|
iceoryx2
C++ Bindings
|
#include <port_factory_client.hpp>
Public Member Functions | |
| auto | backpressure_strategy (const BackpressureStrategy value) -> decltype(auto) |
| auto | max_active_requests (const uint64_t value) -> decltype(auto) |
| auto | name (const PortName value) -> decltype(auto) |
| PortFactoryClient (PortFactoryClient &&rhs) noexcept | |
| auto | operator= (PortFactoryClient &&rhs) noexcept -> PortFactoryClient & |
| ~PortFactoryClient () | |
| PortFactoryClient (const PortFactoryClient &)=delete | |
| auto | operator= (const PortFactoryClient &) -> PortFactoryClient &=delete |
| template<typename T = RequestPayload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> | |
| auto | initial_max_slice_len (uint64_t value) &&-> PortFactoryClient && |
| Sets the maximum number of elements that can be loaned in a slice. | |
| template<typename T = RequestPayload, typename = std::enable_if_t<has_flatbuffer_marker<T>(), void>> | |
| auto | initial_reserved_memory (uint64_t value) &&-> PortFactoryClient && |
| template<typename T = RequestPayload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE || has_flatbuffer_marker<T>(), void>> | |
| auto | allocation_strategy (AllocationStrategy value) &&-> PortFactoryClient && |
| auto | override_request_preallocation (const OverridePreallocationCallback &callback) &&-> PortFactoryClient && |
| auto | set_request_degradation_handler (DegradationHandler *handler) &&-> PortFactoryClient && |
| auto | set_response_degradation_handler (DegradationHandler *handler) &&-> PortFactoryClient && |
| auto | set_backpressure_handler (BackpressureHandler *handler) &&-> PortFactoryClient && |
| auto | create () &&-> bb::Expected< Client< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >, ClientCreateError > |
| Creates a new [Client] or returns a [ClientCreateError] on failure. | |
Friends | |
| template<ServiceType, typename, typename, typename, typename> | |
| class | PortFactoryRequestResponse |
Factory to create a new [Client] port/endpoint for [MessagingPattern::RequestResponse] based communication.
Definition at line 38 of file port_factory_client.hpp.
|
inlinenoexcept |
Definition at line 324 of file port_factory_client.hpp.
References PortFactoryClient().
Referenced by allocation_strategy(), initial_max_slice_len(), initial_reserved_memory(), name(), operator=(), operator=(), override_request_preallocation(), PortFactoryClient(), PortFactoryClient(), set_backpressure_handler(), set_request_degradation_handler(), and set_response_degradation_handler().
|
inline |
Definition at line 360 of file port_factory_client.hpp.
|
delete |
References PortFactoryClient().
|
inline |
Defines the allocation strategy that is used when the provided [PortFactoryClient::initial_max_slice_len()] is exhausted. This happens when the user acquires more than max slice len in [Client::loan_slice()] or [Client::loan_slice_uninit()].
Definition at line 191 of file port_factory_client.hpp.
References PortFactoryClient().
| auto iox2::PortFactoryClient< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >::backpressure_strategy | ( | const BackpressureStrategy | value | ) | ->decltype(auto) |
Sets the [BackpressureStrategy] which defines how the [Client] shall behave when a [Server] cannot receive a [RequestMut] since its internal buffer is full.
References backpressure_strategy().
Referenced by backpressure_strategy().
|
inline |
Creates a new [Client] or returns a [ClientCreateError] on failure.
Definition at line 235 of file port_factory_client.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 number of elements that can be loaned in a slice.
Definition at line 155 of file port_factory_client.hpp.
References PortFactoryClient().
|
inline |
Sets the maximum initial reserved memory that the underlying allocator reserves for the flatbuffer builder.
Definition at line 167 of file port_factory_client.hpp.
References PortFactoryClient().
| auto iox2::PortFactoryClient< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >::max_active_requests | ( | const uint64_t | value | ) | ->decltype(auto) |
Defines the required maximal amount of active requests the [Client] can send. Smallest possible value is 1.
References max_active_requests().
Referenced by max_active_requests().
| auto iox2::PortFactoryClient< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >::name | ( | const PortName | value | ) | ->decltype(auto) |
|
delete |
References PortFactoryClient().
|
inlinenoexcept |
Definition at line 335 of file port_factory_client.hpp.
References PortFactoryClient().
|
inline |
Defines a callback to reduce the number of preallocated [RequestMut]s. The input argument is the worst case number of preallocated [RequestMut]s required to guarantee that the [Client] never runs out of [RequestMut]s to loan and send. The return value is clamped between 1 and the worst case number of preallocated [RequestMut]s.
If the user reduces the number of preallocated [RequestMut]s, iceoryx2 can no longer guarantee, that the [Client] can always loan a [RequestMut] to send.
Definition at line 178 of file port_factory_client.hpp.
References PortFactoryClient().
|
inline |
Sets the [BackpressureHandler] of the [Client]. Whenever a [RequestMut] cannot be sent to a [Server], 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 224 of file port_factory_client.hpp.
References PortFactoryClient().
|
inline |
Sets the [DegradationHandler] for sending [RequestMut] from the [Client]. Whenever a request connection to a [Server] is corrupted, this handler is called and depending on the returned [DegradationAction] measures will be taken.
Definition at line 202 of file port_factory_client.hpp.
References PortFactoryClient().
|
inline |
Sets the [DegradationHandler] for receiving [Response]s from a [Server]. Whenever a response connection to a [Server] is corrupted, this handler is called and depending on the returned [DegradationAction] measures will be taken.
Definition at line 213 of file port_factory_client.hpp.
References PortFactoryClient().
|
friend |
Definition at line 135 of file port_factory_client.hpp.
References PortFactoryRequestResponse.
Referenced by PortFactoryRequestResponse.