Class FTPClientFactoryImpl

    • Constructor Detail

      • FTPClientFactoryImpl

        public FTPClientFactoryImpl()
    • Method Detail

      • setConnectTimeout

        public void setConnectTimeout​(Duration connectTimeout)
      • setControlTimeout

        public void setControlTimeout​(Duration controlTimeout)
      • setDataTimeout

        public void setDataTimeout​(Duration dataTimeout)
      • setMaxIdleConnections

        public void setMaxIdleConnections​(int maxIdle)
        Set the maximum number of idle FTP connections to keep in the pool.
      • setMaxTotalConnections

        public void setMaxTotalConnections​(int maxTotal)
        Set the maximum number of FTP connections.
      • setAuthenticator

        public void setAuthenticator​(@Nullable
                                     FTPClientAuthenticator authenticator)
        Set the authenticator to use to authenticate against FTP servers.
      • destroyClient

        public void destroyClient​(URL url,
                                  org.apache.commons.net.ftp.FTPClient client)
        Description copied from interface: FTPClientFactory
        Destroy an FTP client that is known to be no-longer valid.
        Specified by:
        destroyClient in interface FTPClientFactory
      • recycleClient

        public void recycleClient​(URL url,
                                  org.apache.commons.net.ftp.FTPClient client)
        Description copied from interface: FTPClientFactory
        Recycle the FTP client so that it might be reused in the future.
        Specified by:
        recycleClient in interface FTPClientFactory