Class FTPPoolConfig


  • public final class FTPPoolConfig
    extends Object
    Configuration for the client connection pools of FTP file systems.

    Instances of this class are immutable and thread-safe.

    Author:
    Rob Spoor
    Since:
    3.0
    • Method Detail

      • maxWaitTime

        public Optional<Duration> maxWaitTime()
        Returns the maximum time to wait when acquiring client connections.
        Returns:
        An Optional describing the maximum time to wait when acquiring client connections, or Optional#empty() to wait indefinitely.
      • maxIdleTime

        public Optional<Duration> maxIdleTime()
        Returns the maximum time that client connections can be idle.
        Returns:
        An Optional describing the maximum time that client connections can be idle, or Optional.empty() if client connections can be idle indefinitely.
      • initialSize

        public int initialSize()
        Returns the initial pool size. This is the number of idle client connections to start with.
        Returns:
        The initial pool size.
      • maxSize

        public int maxSize()
        Returns the maximum pool size. This is the maximum number of client connections, both idle and currently in use.
        Returns:
        The maximum pool size.
      • defaultConfig

        public static FTPPoolConfig defaultConfig()
        Returns a default FTPPoolConfig object. This has the same configuration as an object returned by custom().build().
        Returns:
        A default FTPPoolConfig object.
        See Also:
        custom()