|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.nio.reactor.ListenerEndpointImpl
@Contract(threading=SAFE_CONDITIONAL) 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)
|
String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
---|
public ListenerEndpointImpl(SocketAddress address, ListenerEndpointClosedCallback callback)
Method Detail |
---|
public SocketAddress getAddress()
ListenerEndpoint
getAddress
in interface ListenerEndpoint
public boolean isCompleted()
public IOException getException()
ListenerEndpoint
IOException
thrown during initialization
of this endpoint or null
, if initialization was successful.
getException
in interface ListenerEndpoint
null
.public void waitFor() throws InterruptedException
ListenerEndpoint
waitFor
in interface ListenerEndpoint
InterruptedException
- 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 ListenerEndpoint
true
if the endpoint has been closed,
false
otherwise.public void close()
ListenerEndpoint
close
in interface ListenerEndpoint
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |