public final class FTPPoolConfig extends Object
Instances of this class are immutable and thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
FTPPoolConfig.Builder
A builder for
FTPPoolConfig objects. |
| Modifier and Type | Method and Description |
|---|---|
static FTPPoolConfig.Builder |
custom()
Returns a new builder for creating
FTPPoolConfig objects. |
static FTPPoolConfig |
defaultConfig()
Returns a default
FTPPoolConfig object. |
int |
initialSize()
Returns the initial pool size.
|
Optional<Duration> |
maxIdleTime()
Returns the maximum time that client connections can be idle.
|
int |
maxSize()
Returns the maximum pool size.
|
Optional<Duration> |
maxWaitTime()
Returns the maximum time to wait when acquiring client connections.
|
String |
toString() |
public Optional<Duration> maxWaitTime()
Optional describing the maximum time to wait when acquiring client connections,
or Optional#empty() to wait indefinitely.public Optional<Duration> maxIdleTime()
Optional describing the maximum time that client connections can be idle,
or Optional.empty() if client connections can be idle indefinitely.public int initialSize()
public int maxSize()
public static FTPPoolConfig defaultConfig()
FTPPoolConfig object. This has the same configuration as an object returned by custom().build().FTPPoolConfig object.custom()public static FTPPoolConfig.Builder custom()
FTPPoolConfig objects.FTPPoolConfig objects.Copyright © 2016–2024. All rights reserved.