类 ConnectionPool
java.lang.Object
com.alibaba.csp.sentinel.cluster.server.connection.ConnectionPool
Universal connection pool for connection management.
- 从以下版本开始:
- 1.4.0
- 作者:
- xuyue, Eric Zhao
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclear()intcount()voidcreateConnection(io.netty.channel.Channel channel) getConnection(String remoteIp, int remotePort) voidvoidrefreshLastReadTime(io.netty.channel.Channel channel) voidremove(io.netty.channel.Channel channel) void
-
构造器详细资料
-
ConnectionPool
public ConnectionPool()
-
-
方法详细资料
-
createConnection
public void createConnection(io.netty.channel.Channel channel) -
refreshLastReadTime
public void refreshLastReadTime(io.netty.channel.Channel channel) -
getConnection
-
remove
public void remove(io.netty.channel.Channel channel) -
listAllConnection
-
count
public int count() -
clear
public void clear() -
shutdownAll
- 抛出:
Exception
-
refreshIdleTask
public void refreshIdleTask()
-