#ifndef __ASYNC_UPDATE_HPP__ #define __ASYNC_UPDATE_HPP__ #include #include "proto/rpc.grpc.pb.h" #include "v3/include/Action.hpp" #include "v3/include/AsyncTxnResponse.hpp" using grpc::ClientAsyncResponseReader; using etcdserverpb::TxnResponse; using etcdserverpb::KV; namespace etcdv3 { class AsyncUpdateAction : public etcdv3::Action { public: AsyncUpdateAction(std::string const & key, std::string const & value, KV::Stub* stub_); AsyncTxnResponse ParseResponse(); TxnResponse reply; std::unique_ptr> response_reader; }; } #endif