Interface ServerRunner<T extends Client>

    • Method Detail

      • isRunning

        boolean isRunning()
        Gets a flag indicating whether the server is currently running.
        Returns:
        flag state
      • stop

        void stop()
           throws java.io.IOException
        Stops execution of the runner.

        This method must cause all I/O and thread resources associated with the runner to be released. If the receiver has not been started, this method must have no effect.

        Throws:
        java.io.IOException
      • accept

        void accept​(ClientVisitor<T> visitor)
        Presents each connected client to the given visitor.
        Parameters:
        visitor - the subject visitor