mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-06 17:18:54 +08:00
修复AIConfigBuilder中方法名拼写错误(pr#1382@Gitee)
This commit is contained in:
parent
a47c111547
commit
69c2916ee0
@ -34,6 +34,7 @@
|
||||
* 【extra 】 修复`Sftp`递归删除目录时使用相对路径可能导致死循环的问题(pr#1380@Gitee)
|
||||
* 【db 】 修复`SqlUtil.removeOuterOrderBy`处理没有order by的语句导致异常问题(pr#4089@Github)
|
||||
* 【extra 】 修复`Sftp.upload`目标路径为null时空指针问题(issue#ID14WX@Gitee)
|
||||
* 【ai 】 修复`AIConfigBuilder`中方法名拼写错误(pr#1382@Gitee)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.40(2025-08-26)
|
||||
|
||||
@ -112,8 +112,21 @@ public class AIConfigBuilder {
|
||||
* @param timeout 超时时间
|
||||
* @return config
|
||||
* @since 5.8.39
|
||||
* @deprecated 请使用 {@link #setTimeout(int)}
|
||||
*/
|
||||
public synchronized AIConfigBuilder setTimout(final int timeout) {
|
||||
@Deprecated
|
||||
public AIConfigBuilder setTimout(final int timeout) {
|
||||
return setTimeout(timeout);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置连接超时时间,不设置为默认值
|
||||
*
|
||||
* @param timeout 超时时间
|
||||
* @return config
|
||||
* @since 5.8.41
|
||||
*/
|
||||
public synchronized AIConfigBuilder setTimeout(final int timeout) {
|
||||
if (timeout > 0) {
|
||||
config.setTimeout(timeout);
|
||||
}
|
||||
@ -126,10 +139,23 @@ public class AIConfigBuilder {
|
||||
* @param readTimout 取超时时间
|
||||
* @return config
|
||||
* @since 5.8.39
|
||||
* @deprecated 请使用 {@link #setReadTimeout(int)}
|
||||
*/
|
||||
public synchronized AIConfigBuilder setReadTimout(final int readTimout) {
|
||||
if (readTimout > 0) {
|
||||
config.setReadTimeout(readTimout);
|
||||
@Deprecated
|
||||
public AIConfigBuilder setReadTimout(final int readTimout) {
|
||||
return setReadTimeout(readTimout);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置读取超时时间,不设置为默认值
|
||||
*
|
||||
* @param readTimeout 取超时时间
|
||||
* @return config
|
||||
* @since 5.8.41
|
||||
*/
|
||||
public synchronized AIConfigBuilder setReadTimeout(final int readTimeout) {
|
||||
if (readTimeout > 0) {
|
||||
config.setReadTimeout(readTimeout);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user