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 |
setDebugLevel(Level level) |
TS3Config |
setDebugToFile(boolean debugToFile) |
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 setDebugLevel(Level level)
public TS3Config setDebugToFile(boolean debugToFile)
public 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 0
public TS3Config setReconnectStrategy(ReconnectStrategy reconnectStrategy)
public TS3Config setConnectionHandler(ConnectionHandler connectionHandler)
Copyright © 2016. All rights reserved.