aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/helper/configfetcher.hpp
blob: 9200bc3088decdba6e57eb825b07601e10a6888f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Vespa.ai. 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