public class ServerConnectionController extends ConnectionController
helper, overloaded, running| Constructor and Description |
|---|
ServerConnectionController(ServerConnectionHelper helper)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Awaits for the controller to be effectively started.
|
protected void |
doInit()
Initializes the controller before entering the control loop.
|
protected ServerConnectionHelper |
getHelper()
Returns the parent server helper.
|
protected void |
onSelected(SelectionKey key)
Called back when a ready key has been selected.
|
controlConnection, controlConnections, createSelector, doRelease, doRun, getNewRegistrations, getSelector, getUpdatedRegistrations, onWokeup, register, registerKeys, selectKeys, shutdown, updateKeys, wakeupgetWorkerService, isOverloaded, isRunning, run, setOverloadedpublic ServerConnectionController(ServerConnectionHelper helper)
helper - The target server helper.public void await()
throws InterruptedException
InterruptedExceptionprotected void doInit()
ControllerdoInit in class ConnectionControllerprotected ServerConnectionHelper getHelper()
getHelper in class Controllerprotected void onSelected(SelectionKey key) throws IOException
ConnectionControlleronSelected in class ConnectionControllerkey - The selected key selected.IOExceptionCopyright © 2005–2015. All rights reserved.