Class ListenerEndpointImpl

java.lang.Object
org.apache.hc.core5.reactor.ListenerEndpointImpl
All Implemented Interfaces:
Closeable, AutoCloseable, ModalCloseable, ListenerEndpoint

class ListenerEndpointImpl extends Object implements ListenerEndpoint
  • Field Details

  • Constructor Details

  • Method Details

    • getAddress

      public SocketAddress getAddress()
      Description copied from interface: ListenerEndpoint
      Returns the socket address of this endpoint.
      Specified by:
      getAddress in interface ListenerEndpoint
      Returns:
      socket address.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isClosed

      public boolean isClosed()
      Description copied from interface: ListenerEndpoint
      Determines if this endpoint has been closed and is no longer listens for incoming connections.
      Specified by:
      isClosed in interface ListenerEndpoint
      Returns:
      true if the endpoint has been closed, false otherwise.
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • close

      public void close(CloseMode closeMode)
      Description copied from interface: ModalCloseable
      Closes this process or endpoint and releases any system resources associated with it. If the endpoint or the process is already closed then invoking this method has no effect.
      Specified by:
      close in interface ModalCloseable
      Parameters:
      closeMode - How to close the receiver.