Retrieve a message that meets the predicate criteria.
boost::optional< Json::Value > findMsg( std::chrono::milliseconds const& timeout, std::function< bool(Json::Value const &)> pred);