public class ScheduledDisconnectStrategy extends Object implements ConnectionMonitorStrategy
Configs.CONN_SERVICE_STATUS_OFF at first.| 构造器和说明 |
|---|
ScheduledDisconnectStrategy() |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,List<Connection>> |
filter(List<Connection> connections)
Filter connections to monitor
|
void |
monitor(Map<String,RunStateRecordedFutureTask<ConnectionPool>> connPools)
Monitor connections and close connections with status is off
|
public Map<String,List<Connection>> filter(List<Connection> connections)
filter 在接口中 ConnectionMonitorStrategyconnections - public void monitor(Map<String,RunStateRecordedFutureTask<ConnectionPool>> connPools)
monitor 在接口中 ConnectionMonitorStrategyconnPools - Copyright © 2021. All rights reserved.