public boolean contains(Connection connection) {
        return connections.contains(connection);
    }
check weather a connection already added

@param connection Connection
@return whether this pool contains the target connection
src/main/java/com/alipay/remoting/ConnectionPool.java