public class ConnectionPool extends Object
| Constructor and Description |
|---|
ConnectionPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
count() |
void |
createConnection(io.netty.channel.Channel channel) |
Connection |
getConnection(String remoteIp,
int remotePort) |
List<Connection> |
listAllConnection() |
void |
refreshIdleTask() |
void |
refreshLastReadTime(io.netty.channel.Channel channel) |
void |
remove(io.netty.channel.Channel channel) |
void |
shutdownAll() |
public void createConnection(io.netty.channel.Channel channel)
public void refreshLastReadTime(io.netty.channel.Channel channel)
public Connection getConnection(String remoteIp, int remotePort)
public void remove(io.netty.channel.Channel channel)
public List<Connection> listAllConnection()
public int count()
public void clear()
public void refreshIdleTask()
Copyright © 2020 Alibaba Group. All rights reserved.