public class SshConnectionPool extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_POOL_MAX_SIZE |
static int |
DEFAULT_SESSION_TIMEOUT |
| Constructor and Description |
|---|
SshConnectionPool(int maxSize,
long idleTimeout) |
SshConnectionPool(int maxSize,
long idleTimeout,
Function<NConnectionString,SshConnection> factory) |
| Modifier and Type | Method and Description |
|---|---|
SshConnection |
acquire(NConnectionString connectionString) |
SshConnection |
acquire(String connectionString) |
void |
close() |
void |
disposeOld(long timeoutMs) |
static SshConnectionPool |
of() |
public static final int DEFAULT_SESSION_TIMEOUT
public static final int DEFAULT_POOL_MAX_SIZE
public SshConnectionPool(int maxSize,
long idleTimeout)
public SshConnectionPool(int maxSize,
long idleTimeout,
Function<NConnectionString,SshConnection> factory)
public static SshConnectionPool of()
public SshConnection acquire(String connectionString)
public SshConnection acquire(NConnectionString connectionString)
public void disposeOld(long timeoutMs)
public void close()
Copyright © 2026 vpc open source initiative. All rights reserved.