private class RouterSessionManager.Incoming
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
context
Security context
|
private java.nio.channels.SocketChannel |
inputChannel
The input channel.
|
private java.net.Socket |
inputSocket
Incoming connection socket.
|
private RouterSessionManager.Mode |
mode
The connection mode.
|
private SessionListener |
notify
Listener for session events.
|
private NetSocket |
socket
Client connection socket.
|
Constructor and Description |
---|
Incoming(java.nio.channels.SocketChannel channel,
RouterSessionManager.Mode mode,
SessionListener notify)
Constructs an instance.
|
Incoming(java.net.Socket socket,
RouterSessionManager.Mode mode,
SessionListener notify)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Main processing thread.
|
private final SessionListener notify
private NetSocket socket
private final java.net.Socket inputSocket
private final java.nio.channels.SocketChannel inputChannel
private java.lang.Object context
private RouterSessionManager.Mode mode
Incoming(java.net.Socket socket, RouterSessionManager.Mode mode, SessionListener notify)
socket
- Incoming session's transport.mode
- The connection mode.notify
- Listener to receive session event notifications. May be
null
.Incoming(java.nio.channels.SocketChannel channel, RouterSessionManager.Mode mode, SessionListener notify)
channel
- Incoming session's channel.mode
- The connection mode.notify
- Listener to receive session event notifications. May be
null
.