|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.nio.reactor.ListenerEndpointImpl
@ThreadSafe public class ListenerEndpointImpl
Default implementation of ListenerEndpoint.
| Constructor Summary | |
|---|---|
ListenerEndpointImpl(SocketAddress address,
ListenerEndpointClosedCallback callback)
|
|
| Method Summary | |
|---|---|
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()
|
protected void |
setKey(SelectionKey key)
|
void |
waitFor()
Waits for completion of initialization process of this endpoint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListenerEndpointImpl(SocketAddress address,
ListenerEndpointClosedCallback callback)
| Method Detail |
|---|
public SocketAddress getAddress()
ListenerEndpoint
getAddress in interface ListenerEndpointpublic boolean isCompleted()
public IOException getException()
ListenerEndpointIOException thrown during initialization
of this endpoint or null, if initialization was successful.
getException in interface ListenerEndpointnull.
public void waitFor()
throws InterruptedException
ListenerEndpoint
waitFor in interface ListenerEndpointInterruptedException - in case the initialization process was
interrupted.public void completed(SocketAddress address)
public void failed(IOException exception)
public void cancel()
protected void setKey(SelectionKey key)
public boolean isClosed()
ListenerEndpoint
isClosed in interface ListenerEndpointtrue if the endpoint has been closed,
false otherwise.public void close()
ListenerEndpoint
close in interface ListenerEndpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||