public interface RemoteCommandManager extends CommandSenderProvider
RemoteConnection
.Modifier and Type | Method and Description |
---|---|
void |
sendNotification(RemoteNotification notification)
Sends the given notification to all connected clients.
|
void |
startReading(RemoteConnection connection,
String connectionName)
Starts to read and execute the commands from the given
CommandReader . |
void |
startReading(RemoteConnection connection,
String connectionName,
RemoteConnectionListener listener)
Starts to read and execute the commands from the given
CommandReader . |
void |
stopAll()
Stops all the connections.
|
void |
stopReading(RemoteConnection connection)
Stops reading the commands from the given
CommandReader . |
getCommandSenders, getRegisteredCommands, registerListener
void sendNotification(RemoteNotification notification)
notification
- the notification to send.void startReading(RemoteConnection connection, String connectionName)
CommandReader
.
A new thread is created.
This method behaves exactly as if it simply performs the call startReading(connection, "unknown")
.
connection
- the connection to read.connectionName
- the name of the connection to read.void startReading(RemoteConnection connection, String connectionName, RemoteConnectionListener listener)
CommandReader
.
A new thread is created.
connection
- the connection to read.listener
- the associated listener.connectionName
- the name of the connection to read.void stopAll()
void stopReading(RemoteConnection connection)
CommandReader
.connection
- the connection to stop to read.