public boolean isFine() {
        return this.channel != null && this.channel.isActive() && !closed.get();
    }
to check whether the connection is fine to use

@return true if connection is fine
src/main/java/com/alipay/remoting/Connection.java