-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.java
31 lines (21 loc) · 811 Bytes
/
Config.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package configurations;
import java.util.HashSet;
public class Config{
public static final int serverPort=8080;
// thread pool configuration
public static final int corePoolSize=2;
public static final int maxPoolSize=3;
public static final long keepAliveTime=1L;
// cache configuration
public static final int cacheSize=2;
// destination server configuration
public static final String tcpServerHost="localhost";
public static final int tcpServerPort=8081;
// select server type
public static final ServerType serverType=ServerType.HTTP;
public static final String httpServerHost="http://localhost:3000";
// blacklisted IPs
public static final HashSet<String> blacklistedIPs = new HashSet<String>() {{
// add("/127.0.0.1");
}};
}