Package ej.rcommand

Interface RemoteCommandManager

    • Method Detail

      • startReading

        void startReading​(RemoteConnection connection,
                          String connectionName)
        Starts to read and execute the commands from the given CommandReader.

        A new thread is created.

        This method behaves exactly as if it simply performs the call startReading(connection, "unknown").

        Parameters:
        connection - the connection to read.
        connectionName - the name of the connection to read.
      • startReading

        void startReading​(RemoteConnection connection,
                          String connectionName,
                          RemoteConnectionListener listener)
        Starts to read and execute the commands from the given CommandReader.

        A new thread is created.

        Parameters:
        connection - the connection to read.
        listener - the associated listener.
        connectionName - the name of the connection to read.
      • stopReading

        void stopReading​(RemoteConnection connection)
        Stops reading the commands from the given CommandReader.
        Parameters:
        connection - the connection to stop to read.
      • stopAll

        void stopAll()
        Stops all the connections.
      • sendNotification

        void sendNotification​(RemoteNotification notification)
        Sends the given notification to all connected clients.
        Parameters:
        notification - the notification to send.