20 #ifndef GEODE_DEFAULTRESULTCOLLECTOR_H_
21 #define GEODE_DEFAULTRESULTCOLLECTOR_H_
24 #include <condition_variable>
30 #include "internal/geode_globals.hpp"
40 class APACHE_GEODE_EXPORT DefaultResultCollector :
public ResultCollector {
42 DefaultResultCollector();
43 ~DefaultResultCollector() noexcept override;
45 std::shared_ptr<CacheableVector> getResult(
46 std::chrono::milliseconds timeout =
47 DEFAULT_QUERY_RESPONSE_TIMEOUT) override;
50 const std::shared_ptr<Cacheable>& resultOfSingleExecution) override;
52 void endResults() override;
54 void clearResults() override;
57 std::shared_ptr<CacheableVector> resultList;
59 std::condition_variable readyCondition;
60 std::mutex readyMutex;
67 #endif // GEODE_DEFAULTRESULTCOLLECTOR_H_