32 <<
"Unable to load routing conf file: "
40 auto qos = attr.mutable_qos_profile();
49 attr_history.set_channel_name(
51 auto qos_history = attr_history.mutable_qos_profile();
52 qos_history->set_history(
54 qos_history->set_reliability(
56 qos_history->set_durability(
59 response_history_writer_ =
61 std::weak_ptr<RoutingComponent> self =
62 std::dynamic_pointer_cast<RoutingComponent>(shared_from_this());
63 timer_.reset(new ::apollo::cyber::Timer(
64 FLAGS_routing_response_history_interval_ms,
66 auto ptr = self.lock();
68 std::lock_guard<std::mutex> guard(this->mutex_);
69 if (this->response_ !=
nullptr) {
71 response_->mutable_header()->set_timestamp_sec(timestamp);
72 this->response_history_writer_->Write(*response_);
83 const std::shared_ptr<routing::RoutingRequest>& request) {
84 auto response = std::make_shared<routing::RoutingResponse>();
85 if (!routing_.
Process(request, response.get())) {
88 common::util::FillHeader(
node_->Name(), response.get());
89 response_writer_->Write(response);
91 std::lock_guard<std::mutex> guard(mutex_);
92 response_ = std::move(response);