public class

ListenerEndpointImpl

extends Object
implements ListenerEndpoint
java.lang.Object
   ↳ org.apache.http.impl.nio.reactor.ListenerEndpointImpl

Class Overview

Default implementation of ListenerEndpoint.

Summary

Public Constructors
ListenerEndpointImpl(SocketAddress address, ListenerEndpointClosedCallback callback)
Public Methods
void cancel()
void close()
Closes this endpoint.
void completed(SocketAddress address)
void failed(IOException exception)
SocketAddress getAddress()
Returns the socket address of this endpoint.
IOException getException()
Returns an instance of IOException thrown during initialization of this endpoint or null, if initialization was successful.
boolean isClosed()
Determines if this endpoint has been closed and is no longer listens for incoming connections.
boolean isCompleted()
void waitFor()
Waits for completion of initialization process of this endpoint.
Protected Methods
void setKey(SelectionKey key)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.nio.reactor.ListenerEndpoint

Public Constructors

public ListenerEndpointImpl (SocketAddress address, ListenerEndpointClosedCallback callback)

Public Methods

public void cancel ()

public void close ()

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

public void completed (SocketAddress address)

public void failed (IOException exception)

public SocketAddress getAddress ()

Returns the socket address of this endpoint.

Returns
  • socket address.

public 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 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 boolean isCompleted ()

public void waitFor ()

Waits for completion of initialization process of this endpoint.

Protected Methods

protected void setKey (SelectionKey key)