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

com.loocme.sys.entities.HttpManagerParams Maven / Gradle / Ivy

package com.loocme.sys.entities;

/**
 * @author liuchi
 */
public class HttpManagerParams
{

    /**
     * 编码
     */
    private String encoding = "UTF-8";
    /**
     * 连接超时
     */
    private Integer connectionTimeout = 15000;
    /**
     * 应答超时
     */
    private Integer soTimeout = 30000;
    private Boolean staleCheckEnabled = true;
    private Boolean tcpNoDelay = true;
    private Integer defaultMaxConnectionsPerHost = 100;
    private Integer maxTotalConnections = 1000;
    public String getEncoding()
    {
        return encoding;
    }
    public void setEncoding(String encoding)
    {
        this.encoding = encoding;
    }
    public Integer getConnectionTimeout()
    {
        return connectionTimeout;
    }
    public void setConnectionTimeout(Integer connectionTimeout)
    {
        this.connectionTimeout = connectionTimeout;
    }
    public Integer getSoTimeout()
    {
        return soTimeout;
    }
    public void setSoTimeout(Integer soTimeout)
    {
        this.soTimeout = soTimeout;
    }
    public Boolean getStaleCheckEnabled()
    {
        return staleCheckEnabled;
    }
    public void setStaleCheckEnabled(Boolean staleCheckEnabled)
    {
        this.staleCheckEnabled = staleCheckEnabled;
    }
    public Boolean getTcpNoDelay()
    {
        return tcpNoDelay;
    }
    public void setTcpNoDelay(Boolean tcpNoDelay)
    {
        this.tcpNoDelay = tcpNoDelay;
    }
    public Integer getDefaultMaxConnectionsPerHost()
    {
        return defaultMaxConnectionsPerHost;
    }
    public void setDefaultMaxConnectionsPerHost(Integer defaultMaxConnectionsPerHost)
    {
        this.defaultMaxConnectionsPerHost = defaultMaxConnectionsPerHost;
    }
    public Integer getMaxTotalConnections()
    {
        return maxTotalConnections;
    }
    public void setMaxTotalConnections(Integer maxTotalConnections)
    {
        this.maxTotalConnections = maxTotalConnections;
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy