public interface RemoteCommandManager extends CommandSenderProvider
RemoteConnection
.Modifier and Type | Method and Description |
---|---|
void |
startReading(RemoteConnection connection)
Deprecated.
use
instead |
void |
startReading(RemoteConnection connection,
RemoteConnectionListener listener)
Deprecated.
use
instead |
void |
startReading(RemoteConnection connection,
java.lang.String connectionName)
Starts to read and execute the commands from the given
CommandReader . |
void |
startReading(RemoteConnection connection,
java.lang.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, registerListener
@Deprecated void startReading(RemoteConnection connection)
instead
CommandReader
without connection listener.
A new thread is created.
This method behaves exactly as if it simply performs the call startReading(connection, null)
.
connection
- the connection to read.void startReading(RemoteConnection connection, java.lang.String connectionName)
CommandReader
.
A new thread is created.
This method behaves exactly as if it simply performs the call startReading(connection, null)
.
connection
- the connection to read.connectionName
- the name of the connection to read.@Deprecated void startReading(RemoteConnection connection, RemoteConnectionListener listener)
instead
CommandReader
.
A new thread is created.
connection
- the connection to read.listener
- the associated listener.void startReading(RemoteConnection connection, java.lang.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 stopReading(RemoteConnection connection)
CommandReader
.connection
- the connection to stop to read.void stopAll()