19 std::string
const& metadata,
20 bool no_tmoexcept_mode)
22 if (message_size == 0) {
27 throw KnownStateForbidsSend(
ERS_HERE);
31 throw NullPointerPassedToSend(
ERS_HERE);
34 auto res =
send_(message, message_size, timeout, metadata, no_tmoexcept_mode);
51 publish(std::move(i));
std::chrono::milliseconds duration_t
std::atomic< size_t > m_messages
void generate_opmon_data() override
std::atomic< size_t > m_bytes
bool send(const void *message, message_size_t message_size, const duration_t &timeout, std::string const &metadata="", bool no_tmoexcept_mode=false)
virtual bool send_(const void *message, message_size_t N, const duration_t &timeout, std::string const &metadata, bool no_tmoexcept_mode)=0
virtual bool can_send() const noexcept=0
void set_bytes(::uint64_t value)
void set_messages(::uint64_t value)