template<typename INTERFACE_TYPE>
class hlcc::cpputil::Requestor< INTERFACE_TYPE >
Variant of rad::cii::Requestor, with some different features. (a) The URI does not need to be passed already in the ctor. This allows classes to have a Requestor as a normal member field (without pointer or std::optional for delayed construction) and yet they can retrieve the URI in their ctor implementation or later, e.g. from Config, and only then call SetConnectionInfo. (b) Separates connection from method invocation, also with separate timeouts. (c) Allows change of URI, e.g. when Nomad propagates this via Config update.
template<typename INTERFACE_TYPE >
Waits for the MAL client connection to the remote interface to be established (currently this means only to wait for the connection to the process, see ECII-1042).
Calling this method is optional, because CII creates connections automatically. An advantage of checking connection before calling remote methods is that a separate timeout can be used to probe the connection first, e.g. before calling an interface method that takes a long time and therefore requires a long timeout. This allows failing faster in case of connection problems.
- Returns
- true if the connection already existed or if it was established within the given timeout. false otherwise.