Class 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 Detail

      • latch

        private final java.util.concurrent.CountDownLatch latch
        Deprecated.
        The latch to countdown when the socket is ready to accept connections.
    • Constructor Detail

      • ServerConnectionController

        public ServerConnectionController​(ServerConnectionHelper helper)
        Deprecated.
        Constructor.
        Parameters:
        helper - The target server helper.
    • Method Detail

      • await

        public void await()
                   throws java.lang.InterruptedException
        Deprecated.
        Awaits for the controller to be effectively started.
        Throws:
        java.lang.InterruptedException
      • doInit

        protected void doInit()
        Deprecated.
        Description copied from class: Controller
        Initializes the controller before entering the control loop.
        Overrides:
        doInit in class ConnectionController
      • onSelected

        protected void onSelected​(java.nio.channels.SelectionKey key)
                           throws java.io.IOException
        Deprecated.
        Description copied from class: ConnectionController
        Called back when a ready key has been selected.
        Overrides:
        onSelected in class ConnectionController
        Parameters:
        key - The selected key selected.
        Throws:
        java.io.IOException