protected boolean channelAvailable(ManagedChannel channel) {
        if (channel == null) {
            return false;
        }
        ConnectivityState state = channel.getState(false);
        if (ConnectivityState.READY == state) {
            return true;
        }
        if (ConnectivityState.SHUTDOWN == state || ConnectivityState.TRANSIENT_FAILURE == state) {
            return false;
        }
        if (ConnectivityState.IDLE == state || ConnectivityState.CONNECTING == state) {
            return true;
        }
        return false;
    }
The constructor

@param transportConfig transport config
remoting/remoting-triple/src/main/java/com/alipay/sofa/rpc/transport/triple/TripleClientTransport.java