49 const std::list<RequestWorker*>& workers) = 0;
178 std::list<std::unique_ptr<ServiceWorker>>
workers_;
virtual void pauseListening()
const std::vector< folly::EventBase * > & getWorkerEventBases()
const std::list< std::unique_ptr< ServiceWorker > > & getServiceWorkers() const
virtual void init(folly::EventBase *mainEventBase, const std::list< RequestWorker * > &workers)=0
virtual void failHealthChecks()
void addWorkerEventBase(folly::EventBase *evb)
Service & operator=(Service const &)=delete
virtual void initWorkerState(RequestWorker *)
std::list< std::unique_ptr< ServiceWorker > > workers_
std::vector< folly::EventBase * > workerEvbs_
virtual void finishInit()
void addServiceWorker(std::unique_ptr< ServiceWorker > worker, RequestWorker *reqWorker)
void clearServiceWorkers()
virtual void stopAccepting()=0
virtual void startAccepting()
virtual void cleanupWorkerState(RequestWorker *)
virtual void dropConnections(double)