MXS-2446 Provide access to used urls

Makes it possible to later verify that results are for the
urls one expects them to be.
This commit is contained in:
Johan Wikman
2019-07-02 12:23:18 +03:00
parent 1d4d05be6f
commit 26a4f0d859
2 changed files with 28 additions and 2 deletions

View File

@ -172,6 +172,8 @@ public:
virtual long wait_no_more_than() const = 0;
virtual const std::vector<Result>& results() const = 0;
virtual const std::vector<std::string>& urls() const = 0;
};
/**
@ -258,6 +260,16 @@ public:
return m_sImp->results();
}
/**
* The URLs the async operation was invoked with.
*
* @return Vector of urls.
*/
const std::vector<std::string>& urls() const
{
return m_sImp->urls();
}
public:
Async(const std::shared_ptr<Imp>& sImp)
: m_sImp(sImp)