#include "common/api/api_impl.h" #include #include #include "common/common/thread.h" #include "common/event/dispatcher_impl.h" namespace Envoy { namespace Api { Impl::Impl(Thread::ThreadFactory& thread_factory, Stats::Store& store, Event::TimeSystem& time_system, Filesystem::Instance& file_system, Random::RandomGenerator& random_generator, const ProcessContextOptRef& process_context) : thread_factory_(thread_factory), store_(store), time_system_(time_system), file_system_(file_system), random_generator_(random_generator), process_context_(process_context) {} Event::DispatcherPtr Impl::allocateDispatcher(const std::string& name) { return std::make_unique(name, *this, time_system_); } Event::DispatcherPtr Impl::allocateDispatcher(const std::string& name, Buffer::WatermarkFactoryPtr&& factory) { return std::make_unique(name, std::move(factory), *this, time_system_); } } // namespace Api } // namespace Envoy