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, wakeup
getWorkerService, isOverloaded, isRunning, run, setOverloaded
public ServerConnectionController(ServerConnectionHelper helper)
helper
- The target server helper.public void await() throws InterruptedException
InterruptedException
protected ServerConnectionHelper getHelper()
getHelper
in class Controller
protected void onSelected(SelectionKey key) throws IOException
ConnectionController
onSelected
in class ConnectionController
key
- The selected key selected.IOException
protected void doInit()
Controller
doInit
in class ConnectionController
Copyright © 2005–2015. All rights reserved.