public final class SFTPPoolConfig extends Object
Instances of this class are immutable and thread-safe.
Modifier and Type | Class and Description |
---|---|
static class |
SFTPPoolConfig.Builder
A builder for
SFTPPoolConfig objects. |
Modifier and Type | Method and Description |
---|---|
static SFTPPoolConfig.Builder |
custom()
Returns a new builder for creating
SFTPPoolConfig objects. |
static SFTPPoolConfig |
defaultConfig()
Returns a default
SFTPPoolConfig 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 SFTPPoolConfig defaultConfig()
SFTPPoolConfig
object. This has the same configuration as an object returned by custom().build()
.SFTPPoolConfig
object.custom()
public static SFTPPoolConfig.Builder custom()
SFTPPoolConfig
objects.SFTPPoolConfig
objects.Copyright © 2016–2023. All rights reserved.