#ifndef __ASYNC_COMPAREANDDELETE_HPP__ #define __ASYNC_COMPAREANDDELETE_HPP__ #include #include "proto/rpc.grpc.pb.h" #include "etcd/v3/Action.hpp" #include "etcd/v3/AsyncTxnResponse.hpp" using grpc::ClientAsyncResponseReader; using etcdserverpb::TxnResponse; using etcdserverpb::KV; namespace etcdv3 { class AsyncCompareAndDeleteAction : public etcdv3::Action { public: AsyncCompareAndDeleteAction(etcdv3::ActionParameters && params, etcdv3::AtomicityType type); AsyncTxnResponse ParseResponse(); private: TxnResponse reply; std::unique_ptr> response_reader; }; } #endif