Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

新增 com.feilong.net.entity.ConnectionConfig.ConnectionConfig(int) #90

Closed
venusdrogon opened this issue Feb 26, 2020 · 0 comments
Closed
Assignees
Milestone

Comments

@venusdrogon
Copy link
Collaborator

新增 com.feilong.net.entity.ConnectionConfig.ConnectionConfig(int) 构造函数

    /**
     * 打开到 URLConnection资源的通信连接时超时值 (<span style="color:red">以毫秒为单位</span>).
     * 
     * <h3>说明:</h3>
     * <blockquote>
     * <ol>
     * <li>默认 20秒</li>
     * <li>0 表示无穷大超时.</li>
     * <li>如果在建立连接之前超时期满,会引发 {@link java.net.SocketTimeoutException}.</li>
     * </ol>
     * </blockquote>
     *
     * @param connectTimeout
     *            the connect timeout
     * @see TimeInterval#MILLISECOND_PER_SECONDS
     * @since 2.0.3
     */
    public ConnectionConfig(int connectTimeout){
        super();
        this.connectTimeout = connectTimeout;
    }
@venusdrogon venusdrogon added this to the 2.0.3 milestone Feb 26, 2020
@venusdrogon venusdrogon self-assigned this Feb 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant