// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "frtsourcefactory.h" #include "frtsource.h" #include "frtconfigagent.h" #include "connectionfactory.h" namespace config { FRTSourceFactory::FRTSourceFactory(std::unique_ptr connectionFactory, const TimingValues & timingValues, int traceLevel, const VespaVersion & vespaVersion, const CompressionType & compressionType) : _connectionFactory(std::move(connectionFactory)), _requestFactory(traceLevel, vespaVersion, compressionType), _timingValues(timingValues) { } FRTSourceFactory::~FRTSourceFactory() = default; std::unique_ptr FRTSourceFactory::createSource(std::shared_ptr holder, const ConfigKey & key) const { return std::make_unique(_connectionFactory, _requestFactory, std::make_unique(std::move(holder), _timingValues), key); } } // namespace config