org.apache.hc.core5.reactor

## Interface ListenerEndpoint

- All Superinterfaces:
    AutoCloseable, Closeable, ModalCloseable

      public interface ListenerEndpoint
      extends ModalCloseable

  ListenerEndpoint interface represents an endpoint used by an I/O reactor to listen for incoming connection from remote clients.
  Since:
    4.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `SocketAddress` | `getAddress()` Returns the socket address of this endpoint.
    `boolean` | `isClosed()` Determines if this endpoint has been closed and is no longer listens for incoming connections.

    - ### Methods inherited from interface org.apache.hc.core5.io.ModalCloseable

      `close`

    - ### Methods inherited from interface java.io.Closeable

      `close`

- - ### Method Detail

    - #### getAddress

          SocketAddress getAddress()

      Returns the socket address of this endpoint.
      Returns:
        socket address.

    - #### isClosed

          boolean isClosed()

      Determines if this endpoint has been closed and is no longer listens for incoming connections.
      Returns:
        `true` if the endpoint has been closed, `false` otherwise.

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