-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
152 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
http-server/src/main/java/com/zkdcloud/proxy/http/util/ServerConfigure.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.zkdcloud.proxy.http.util; | ||
|
||
/** | ||
* server config | ||
* | ||
* @author zk | ||
* @since 2019/1/30 | ||
*/ | ||
public class ServerConfigure { | ||
private short port; | ||
private short numberWorkers; | ||
private long secondsClientIdle; | ||
private long secondsRemoteIdle; | ||
|
||
public short getPort() { | ||
return port; | ||
} | ||
|
||
public void setPort(short port) { | ||
this.port = port; | ||
} | ||
|
||
public short getNumberWorkers() { | ||
return numberWorkers; | ||
} | ||
|
||
public void setNumberWorkers(short numberWorkers) { | ||
this.numberWorkers = numberWorkers; | ||
} | ||
|
||
public long getSecondsClientIdle() { | ||
return secondsClientIdle; | ||
} | ||
|
||
public void setSecondsClientIdle(long secondsClientIdle) { | ||
this.secondsClientIdle = secondsClientIdle; | ||
} | ||
|
||
public long getSecondsRemoteIdle() { | ||
return secondsRemoteIdle; | ||
} | ||
|
||
public void setSecondsRemoteIdle(long secondsRemoteIdle) { | ||
this.secondsRemoteIdle = secondsRemoteIdle; | ||
} | ||
} |