package com.lenzhao.framework.config;

/**
 *服务启动配置，参数有线程数目，超时时间，端口等
 */
public class ServerConfig {
	private int threadCnt=100;
	
	private int readTimeout=1000;

	private int connectTimeout=1000;
	
	private int port=9090;
	
	public ServerConfig(int port)
	{
		this.port=port;
	}
	
	public int getThreadCnt() {
		return threadCnt;
	}

	public void setThreadCnt(int threadCnt) {
		this.threadCnt = threadCnt;
	}


	public int getConnectTimeout() {
		return connectTimeout;
	}

	public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getReadTimeout() {
		return readTimeout;
	}

	public void setReadTimeout(int readTimeout) {
		this.readTimeout = readTimeout;
	}
	

}

@@ -122,17 +122,19 @@
 hreadCnt
-=
+ = 
 100;%0D%0A%09%0D
@@ -154,25 +154,27 @@
  readTimeout
-=
+ = 
 1000;%0D%0A%0D%0A%09pr
@@ -197,17 +197,19 @@
 tTimeout
-=
+ = 
 1000;%0D%0A%09
@@ -227,17 +227,19 @@
 int port
-=
+ = 
 9090;%0D%0A%09

update ServerConfig