Class ServerConnectionController
- java.lang.Object
-
- org.restlet.ext.nio.internal.controller.Controller
-
- org.restlet.ext.nio.internal.controller.ConnectionController
-
- org.restlet.ext.nio.internal.controller.ServerConnectionController
-
- All Implemented Interfaces:
java.lang.Runnable,WakeupListener
@Deprecated public class ServerConnectionController extends ConnectionController
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.Controls the IO work of parent server helper and manages its connections. Listens on a server socket channel for incoming connections.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.CountDownLatchlatchDeprecated.The latch to countdown when the socket is ready to accept connections.-
Fields inherited from class org.restlet.ext.nio.internal.controller.Controller
helper, overloaded, running
-
-
Constructor Summary
Constructors Constructor Description ServerConnectionController(ServerConnectionHelper helper)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidawait()Deprecated.Awaits for the controller to be effectively started.protected voiddoInit()Deprecated.Initializes the controller before entering the control loop.protected ServerConnectionHelpergetHelper()Deprecated.Returns the parent server helper.protected voidonSelected(java.nio.channels.SelectionKey key)Deprecated.Called back when a ready key has been selected.-
Methods inherited from class org.restlet.ext.nio.internal.controller.ConnectionController
controlConnection, controlConnections, createSelector, doRelease, doRun, getNewRegistrations, getSelector, getUpdatedRegistrations, onWokeup, register, registerKeys, selectKeys, shutdown, updateKeys, wakeup
-
Methods inherited from class org.restlet.ext.nio.internal.controller.Controller
getWorkerService, isOverloaded, isRunning, run, setOverloaded
-
-
-
-
Constructor Detail
-
ServerConnectionController
public ServerConnectionController(ServerConnectionHelper helper)
Deprecated.Constructor.- Parameters:
helper- The target server helper.
-
-
Method Detail
-
await
public void await() throws java.lang.InterruptedExceptionDeprecated.Awaits for the controller to be effectively started.- Throws:
java.lang.InterruptedException
-
doInit
protected void doInit()
Deprecated.Description copied from class:ControllerInitializes the controller before entering the control loop.- Overrides:
doInitin classConnectionController
-
getHelper
protected ServerConnectionHelper getHelper()
Deprecated.Returns the parent server helper.- Overrides:
getHelperin classController- Returns:
- The parent server helper.
-
onSelected
protected void onSelected(java.nio.channels.SelectionKey key) throws java.io.IOExceptionDeprecated.Description copied from class:ConnectionControllerCalled back when a ready key has been selected.- Overrides:
onSelectedin classConnectionController- Parameters:
key- The selected key selected.- Throws:
java.io.IOException
-
-