org.apache.hc.core5.reactor

## Interface ConnectionAcceptor

- All Known Implementing Classes:
    AsyncServer, DefaultListeningIOReactor, HttpAsyncServer

  Deprecated.
  Use `ConnectionListener`

      @Deprecated
      public interface ConnectionAcceptor

  Non-blocking connection acceptor.
  Since:
    5.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<ListenerEndpoint>` | `getEndpoints()` Deprecated. Returns a set of endpoints for this I/O reactor.
    `Future<ListenerEndpoint>` | `listen(SocketAddress address, FutureCallback<ListenerEndpoint> callback)` Deprecated. Opens a new listener endpoint with the given socket address.
    `void` | `pause()` Deprecated. Suspends the I/O reactor preventing it from accepting new connections on all active endpoints.
    `void` | `resume()` Deprecated. Resumes the I/O reactor restoring its ability to accept incoming connections on all active endpoints.

- - ### Method Detail

    - #### listen

          Future<ListenerEndpoint> listen(SocketAddress address,
                                        FutureCallback<ListenerEndpoint> callback)

      Deprecated.
      Opens a new listener endpoint with the given socket address. Once the endpoint is fully initialized it starts accepting incoming connections and propagates I/O activity notifications to the I/O event dispatcher.
      Parameters:
        `address` - the socket address to listen on.
        `callback` - the result callback.
      Returns:
        listener endpoint.

    - #### pause

          void pause()
                     throws IOException

      Deprecated.
      Suspends the I/O reactor preventing it from accepting new connections on all active endpoints.
      Throws:
        `IOException` - in case of an I/O error.

    - #### resume

          void resume()
                      throws IOException

      Deprecated.
      Resumes the I/O reactor restoring its ability to accept incoming connections on all active endpoints.
      Throws:
        `IOException` - in case of an I/O error.

    - #### getEndpoints

          Set<ListenerEndpoint> getEndpoints()

      Deprecated.
      Returns a set of endpoints for this I/O reactor.
      Returns:
        set of endpoints.

Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.