| Modifier and Type | Class and Description |
|---|---|
static class |
TS3Query.FloodRate |
| Constructor and Description |
|---|
TS3Query()
Creates a TS3Query that connects to a TS3 server at
localhost:10011 using default settings. |
TS3Query(TS3Config config)
Creates a customized TS3Query that connects to a server
specified by
config. |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
exit()
Removes and closes all used resources to the TeamSpeak server.
|
TS3Api |
getApi() |
TS3ApiAsync |
getAsyncApi() |
boolean |
isConnected()
Returns
true if the query is likely connected,
false if the query is disconnected or currently trying to reconnect. |
public TS3Query()
localhost:10011 using default settings.public void connect()
public void exit()
public boolean isConnected()
true if the query is likely connected,
false if the query is disconnected or currently trying to reconnect.
Note that the only way to really determine whether the query is connected or not
is to send a command and check whether it succeeds.
Thus this method could return true almost a minute after the connection
has been lost, when the last keep-alive command was sent.
Please do not use this method to write your own connection handler.
Instead, use the built-in classes in the api.reconnect package.
TS3Config.setReconnectStrategy(ReconnectStrategy),
TS3Config.setConnectionHandler(ConnectionHandler)public TS3ApiAsync getAsyncApi()
Copyright © 2018. All rights reserved.