All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jeesuite.filesystem.sdk.fdfs.FastdfsSettings Maven / Gradle / Ivy

There is a newer version: 1.3.6
Show newest version
/**
 *
 */
package com.jeesuite.filesystem.sdk.fdfs;


/**
 * 连接设置
 *
 * @author liulongbiao
 */
final class FastdfsSettings {

    private long connectTimeout;
    private long readTimeout;
    private long idleTimeout;

    private int maxThreads;
    private int maxConnPerHost;

    FastdfsSettings(long connectTimeout,
                    long readTimeout,
                    long idleTimeout,
                    int maxThreads,
                    int maxConnPerHost) {

        this.connectTimeout = connectTimeout;
        this.readTimeout = readTimeout;
        this.idleTimeout = idleTimeout;

        this.maxThreads = maxThreads;
        this.maxConnPerHost = maxConnPerHost;
    }

    long connectTimeout() {
        return connectTimeout;
    }

    long readTimeout() {
        return readTimeout;
    }

    long idleTimeout() {
        return idleTimeout;
    }

    int maxThreads() {
        return maxThreads;
    }

    int maxConnPerHost() {
        return maxConnPerHost;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy