Giter Club home page Giter Club logo

commons-thunisoft-ftppool's Introduction

使用commons-thunisoft-ftppool需要spring文件引入以下依赖:

<bean id="ftpClientManager" class="com.thunisoft.ftppool.FtpClientPoolManager" init-method="init">
    <property name="config" ref="ftpClientPoolConfig"></property>
    <property name="factory" ref="ftpClientFactory"></property>
</bean>

<bean id="ftpClientFactory" class="com.thunisoft.ftppool.FtpClientFactory"></bean>

<bean id="ftpClientPoolConfig" class="com.thunisoft.ftppool.pool.FtpClientPoolConfig">
    <property name="maxTotal" value="${ftp.pool.maxTotal}" />
    <property name="maxTotalPerKey" value="${ftp.pool.maxTotalPerKey}" />
    <property name="maxIdlePerKey" value="${ftp.pool.maxIdlePerKey}" />
    <property name="minIdlePerKey" value="${ftp.pool.minIdlePerKey}" />
    <property name="maxWaitMillis" value="${ftp.pool.maxWaitMillis}" />
    <property name="timeBetweenEvictionRunsMillis" value="${ftp.pool.timeBetweenEvictionRunsMillis}" />
</bean>

配置说明:

#FTP连接池最大连接数,默认不限制 ftp.pool.maxTotal=

#每个key对应的FTP连接池最大连接数,默认不限制 ftp.pool.maxTotalPerKey=

#每个key对应的FTP连接池最大空闲连接数,默认50 ftp.pool.maxIdlePerKey=

#每个key对应的FTP连接池最小空闲连接数,默认20 ftp.pool.minIdlePerKey=

#获取连接最大等待时间,单位毫秒,默认不限制 ftp.pool.maxWaitMillis=

#每隔多长时间运行一次空闲连接回收器,单位毫秒,默认:10000毫秒 ftp.pool.timeBetweenEvictionRunsMillis=

commons-thunisoft-ftppool's People

Watchers

edwin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.