code: public boolean disconnected() {
      if (!configProvider.isState(LifecycleState.DISCONNECTED)) {
        return false;
      }
  
      for (DcpChannel channel : channels) {
        if (!channel.isState(LifecycleState.DISCONNECTED)) {
          return false;
        }
      }
  
      return true;
    }
docs: Returns true if all channels and the config provider are in a disconnected state.