public interface

ListenerEndpoint

org.apache.http.nio.reactor.ListenerEndpoint
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract void close()
Closes this endpoint.
abstract SocketAddress getAddress()
Returns the socket address of this endpoint.
abstract IOException getException()
Returns an instance of IOException thrown during initialization of this endpoint or null, if initialization was successful.
abstract boolean isClosed()
Determines if this endpoint has been closed and is no longer listens for incoming connections.
abstract void waitFor()
Waits for completion of initialization process of this endpoint.

Public Methods

public abstract void close ()

Closes this endpoint. The endpoint will stop accepting incoming connection.

public abstract SocketAddress getAddress ()

Returns the socket address of this endpoint.

Returns
  • socket address.

public abstract IOException getException ()

Returns an instance of IOException thrown during initialization of this endpoint or null, if initialization was successful.

Returns
  • I/O exception object or null.

public abstract 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.

public abstract void waitFor ()

Waits for completion of initialization process of this endpoint.

Throws
InterruptedException in case the initialization process was interrupted.