#ifndef __ASYNC_LEASEGRANTACTION_HPP__ #define __ASYNC_LEASEGRANTACTION_HPP__ #include #include "proto/rpc.grpc.pb.h" #include "v3/include/Action.hpp" #include "v3/include/AsyncLeaseGrantResponse.hpp" using grpc::ClientAsyncResponseReader; using etcdserverpb::LeaseGrantResponse; namespace etcdv3 { class AsyncLeaseGrantAction : public etcdv3::Action { public: AsyncLeaseGrantAction(etcdv3::ActionParameters param); AsyncLeaseGrantResponse ParseResponse(); private: LeaseGrantResponse reply; std::unique_ptr> response_reader; }; } #endif