| Modifier and Type | Field and Description |
|---|---|
private java.nio.channels.ServerSocketChannel |
_channel |
private C |
_context |
private DriverImpl |
_driver |
private java.util.logging.Logger |
_logger |
private boolean |
_selected |
| Constructor and Description |
|---|
ListenerImpl(DriverImpl driver,
java.nio.channels.ServerSocketChannel c,
C context) |
| 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.
|
(package private) void |
selected() |
void |
setContext(C context)
Set the application context that is associated with this listener.
|
(package private) void |
unselected() |
private C _context
private final java.nio.channels.ServerSocketChannel _channel
private final DriverImpl _driver
private final java.util.logging.Logger _logger
private boolean _selected
ListenerImpl(DriverImpl driver, java.nio.channels.ServerSocketChannel c, C context)
void selected()
void unselected()
public Connector<C> accept()
Listenerpublic C getContext()
ListenergetContext in interface Listener<C>createListener(String, int, Object) and
createConnector(java.nio.channels.SelectableChannel, Object)public void setContext(C context)
ListenersetContext in interface Listener<C>