use ServerBootstrap
[folly.git] / folly / wangle / acceptor / Acceptor.h
index 22c467197ac68fb1ffe514938bffcfad8328c556..ee73b4715e1e1fd88b5bb1fc1ca8c4aec5ee05d8 100644 (file)
@@ -180,6 +180,14 @@ class Acceptor :
    */
   void drainAllConnections();
 
+  /**
+   * Drop all connections.
+   *
+   * forceStop() schedules dropAllConnections() to be called in the acceptor's
+   * thread.
+   */
+  void dropAllConnections();
+
  protected:
   friend class AcceptorHandshakeHelper;
 
@@ -238,14 +246,6 @@ class Acceptor :
       std::chrono::milliseconds acceptLatency,
       SSLErrorEnum error) noexcept {}
 
-  /**
-   * Drop all connections.
-   *
-   * forceStop() schedules dropAllConnections() to be called in the acceptor's
-   * thread.
-   */
-  void dropAllConnections();
-
  protected:
 
   /**
@@ -340,7 +340,7 @@ class Acceptor :
 
 class AcceptorFactory {
  public:
-  virtual std::shared_ptr<Acceptor> newAcceptor() = 0;
+  virtual std::shared_ptr<Acceptor> newAcceptor(folly::EventBase*) = 0;
   virtual ~AcceptorFactory() = default;
 };