C - application supplied contextpublic interface Listener<C>
| Modifier and Type | Method and Description |
|---|---|
Connector<C> |
accept()
Accept a connection that is pending on the listener.
|
void |
close()
Close the socket used by the listener.
|
C |
getContext()
Access the application context that is associated with the listener.
|
void |
setContext(C ctx)
Set the application context that is associated with this listener.
|
Connector<C> accept()
C getContext()
createListener(String, int, Object) and
createConnector(java.nio.channels.SelectableChannel, Object)void setContext(C ctx)
void close()
throws java.io.IOException
java.io.IOExceptionCopyright © 2014 FuseSource, Corp.. All Rights Reserved.