load web socket ack timeouts from config
parent
d6ce0d488f
commit
154dd2207a
|
@ -2,7 +2,9 @@ package net.krakatoa.proxy.config;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import lombok.Getter;
|
||||
import net.krakatoa.proxy.ProxySystem;
|
||||
import net.md_5.bungee.config.Configuration;
|
||||
import net.md_5.bungee.config.ConfigurationProvider;
|
||||
import net.md_5.bungee.config.YamlConfiguration;
|
||||
|
@ -14,6 +16,7 @@ public class ConfigHandler {
|
|||
private String webSocketProtocol;
|
||||
private String webSocketHost;
|
||||
private int webSocketPort;
|
||||
private List<Long> webSocketAckTimeouts;
|
||||
|
||||
private String webVoiceAddress;
|
||||
|
||||
|
@ -31,6 +34,7 @@ public class ConfigHandler {
|
|||
webSocketProtocol = configuration.getString("web_socket.protocol");
|
||||
webSocketHost = configuration.getString("web_socket.host");
|
||||
webSocketPort = configuration.getInt("web_socket.port");
|
||||
webSocketAckTimeouts = configuration.getLongList("web_socket.ack_timeouts");
|
||||
|
||||
webVoiceAddress = configuration.getString("web.voice_address");
|
||||
|
||||
|
@ -39,5 +43,7 @@ public class ConfigHandler {
|
|||
mongodbDatabase = configuration.getString("mongodb.database");
|
||||
mongodbUsername = configuration.getString("mongodb.username");
|
||||
mongodbPassword = configuration.getString("mongodb.password");
|
||||
|
||||
ProxySystem.getInstance().getLogger().info("webSocketAckTimeouts " + webSocketAckTimeouts);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue