forked from LianjiaTech/retrofit-spring-boot-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
9005d6b
commit 3ac4650
Showing
30 changed files
with
199 additions
and
534 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
35 changes: 7 additions & 28 deletions
35
src/main/java/com/github/lianjiatech/retrofit/spring/boot/config/PoolConfig.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 |
---|---|---|
@@ -1,39 +1,18 @@ | ||
package com.github.lianjiatech.retrofit.spring.boot.config; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
/** | ||
* 连接池参数配置 | ||
* Connection pool parameter configuration | ||
* | ||
* @author 陈添明 | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class PoolConfig { | ||
|
||
private int maxIdleConnections; | ||
|
||
|
||
private long keepAliveSecond; | ||
|
||
public PoolConfig(int maxIdleConnections, long keepAliveSecond) { | ||
this.maxIdleConnections = maxIdleConnections; | ||
this.keepAliveSecond = keepAliveSecond; | ||
} | ||
|
||
public PoolConfig() { | ||
} | ||
|
||
public void setMaxIdleConnections(int maxIdleConnections) { | ||
this.maxIdleConnections = maxIdleConnections; | ||
} | ||
|
||
public void setKeepAliveSecond(long keepAliveSecond) { | ||
this.keepAliveSecond = keepAliveSecond; | ||
} | ||
|
||
public int getMaxIdleConnections() { | ||
return maxIdleConnections; | ||
} | ||
|
||
public long getKeepAliveSecond() { | ||
return keepAliveSecond; | ||
} | ||
} |
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
Oops, something went wrong.