public static class ConnectionConfig.CloseIdleConnectionConfig extends Object
Constructor and Description |
---|
CloseIdleConnectionConfig(long idleTime,
TimeUnit timeUnit)
Close connections that have idled for the amount of time specified in this config.
|
Modifier and Type | Method and Description |
---|---|
long |
getIdleTime() |
TimeUnit |
getTimeUnit() |
public CloseIdleConnectionConfig(long idleTime, TimeUnit timeUnit)
idleTime
- The idle time of connections to be closedtimeUnit
- The time unit to for idleTime
public long getIdleTime()
public TimeUnit getTimeUnit()
Copyright © 2010–2024. All rights reserved.