Lines
100 %
Functions
#pragma once
#include "envoy/event/dispatcher.h"
#include "source/common/event/dispatcher_impl.h"
namespace Envoy {
namespace Event {
/**
* Config-validation-only implementation of Event::Dispatcher. This class delegates all calls to
* Event::DispatcherImpl, except for the methods involved with network events. Those methods are
* disallowed at validation time.
*/
class ValidationDispatcher : public DispatcherImpl {
public:
ValidationDispatcher(const std::string& name, Api::Api& api, Event::TimeSystem& time_system)
: DispatcherImpl(name, api, time_system) {}
Network::ClientConnectionPtr createClientConnection(
Network::Address::InstanceConstSharedPtr, Network::Address::InstanceConstSharedPtr,
Network::TransportSocketPtr&&, const Network::ConnectionSocket::OptionsSharedPtr& options,
const Network::TransportSocketOptionsConstSharedPtr& transport_options) override;
};
} // namespace Event
} // namespace Envoy