| Constructor and Description |
|---|
TS3Config() |
| Modifier and Type | Method and Description |
|---|---|
TS3Config |
setCommandTimeout(int commandTimeout)
Sets how many milliseconds a call in
TS3Api should block at most until a command
without response fails. |
TS3Config |
setConnectionHandler(ConnectionHandler connectionHandler) |
TS3Config |
setEnableCommunicationsLogging(boolean enable)
Setting this value to
true will log the communication between the
query client and the TS3 server at the DEBUG level. |
TS3Config |
setFloodRate(TS3Query.FloodRate rate) |
TS3Config |
setHost(String host) |
TS3Config |
setQueryPort(int queryPort) |
TS3Config |
setReconnectStrategy(ReconnectStrategy reconnectStrategy) |
public TS3Config()
public TS3Config setQueryPort(int queryPort)
public TS3Config setFloodRate(TS3Query.FloodRate rate)
public TS3Config setEnableCommunicationsLogging(boolean enable)
true will log the communication between the
query client and the TS3 server at the DEBUG level.
By default, this is turned off to prevent leaking IPs, tokens, passwords, etc. into the console and / or log files.
enable - whether to log query commandspublic TS3Config setCommandTimeout(int commandTimeout)
TS3Api should block at most until a command
without response fails. By default, this timeout is 4000 milliseconds.commandTimeout - the maximum time to wait for a response until a synchronous command call failsIllegalArgumentException - if the timeout value is smaller than or equal to 0public TS3Config setReconnectStrategy(ReconnectStrategy reconnectStrategy)
public TS3Config setConnectionHandler(ConnectionHandler connectionHandler)
Copyright © 2018. All rights reserved.