aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/helper/configfetcher.hpp
blob: 4c4e323ac83d55a31e62dc245b1b3cfb796ee960 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "configfetcher.h"
#include "configpoller.hpp"

namespace config {

template <typename ConfigType>
void
ConfigFetcher::subscribe(const std::string & configId, IFetcherCallback<ConfigType> * callback, vespalib::duration subscribeTimeout)
{
    _poller->subscribe<ConfigType>(configId, callback, subscribeTimeout);
}

} // namespace config