java.lang.Object
com.alibaba.csp.sentinel.cluster.server.connection.ConnectionPool

public class ConnectionPool extends Object
Universal connection pool for connection management.
从以下版本开始:
1.4.0
作者:
xuyue, Eric Zhao
  • 构造器详细资料

    • ConnectionPool

      public ConnectionPool()
  • 方法详细资料

    • createConnection

      public void createConnection(io.netty.channel.Channel channel)
    • refreshLastReadTime

      public void refreshLastReadTime(io.netty.channel.Channel channel)
    • getConnection

      public Connection getConnection(String remoteIp, int remotePort)
    • remove

      public void remove(io.netty.channel.Channel channel)
    • listAllConnection

      public List<Connection> listAllConnection()
    • count

      public int count()
    • clear

      public void clear()
    • shutdownAll

      public void shutdownAll() throws Exception
      抛出:
      Exception
    • refreshIdleTask

      public void refreshIdleTask()