9 #ifndef KNOWROB_MONGO_QUERY_WATCH_H
10 #define KNOWROB_MONGO_QUERY_WATCH_H
19 #include <knowrob/storage/mongo/ChangeStream.h>
47 long watch(
const std::shared_ptr<Collection> &collection,
58 std::map<long, std::unique_ptr<ChangeStream>>
watcher_map_;
static std::atomic< long > id_counter_
std::map< long, std::unique_ptr< ChangeStream > > watcher_map_
long watch(const std::shared_ptr< Collection > &collection, const bson_t *query, const ChangeStreamCallback &callback)
void unwatch(long watcher_id)
QueryWatch(const QueryWatch &)=delete
void setWatchRate(uint32_t rate)
std::function< void(const bson_wrapper_ptr &)> ChangeStreamCallback