#ifndef FOUNDATION_IOTACQ_TASK_H #define FOUNDATION_IOTACQ_TASK_H #include #include #include #include #include namespace iot_acq { class AcqTask : public vendor::VendorIf { public: AcqTask(); bool IsInRetry(int32_t times); void OnTimerTask(); void PushRpc(const std::string &name, std::shared_ptr rpc); void ForEach( const std::function &)> &rpcCall); private: std::unordered_map > mapRpc_; }; } // namespace iot_acq #endif // FOUNDATION_IOTACQ_TASK_H