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