5 #include <c10d/ProcessGroup.hpp> 6 #include <c10d/Store.hpp> 7 #include <c10d/Types.hpp> 16 virtual ~Store() =
default;
18 const std::string& key,
19 const std::vector<uint8_t>& value) = 0;
20 virtual std::vector<uint8_t>
get(
const std::string& key) = 0;
21 virtual int64_t
add(
const std::string& key, int64_t value) = 0;
22 virtual bool check(
const std::vector<std::string>& keys) = 0;
23 virtual void wait(
const std::vector<std::string>& keys) = 0;
25 const std::vector<std::string>& keys,
26 const std::chrono::milliseconds& timeout) = 0;
virtual bool check(const std::vector< std::string > &keys)=0
void setTimeout(const std::chrono::seconds &)
Definition: c10d.h:27
virtual void wait(const std::vector< std::string > &keys)=0
virtual int64_t add(const std::string &key, int64_t value)=0
ReduceOp
Definition: c10d.h:32