/** 返回值表示是否发生变更 */
  public boolean updateChannel(
      final ClientChannelInfo clientChannelInfo,
      ConsumeType consumeType,
      MessageModel messageModel,
      ConsumeFromWhere consumeFromWhere) {
    boolean updated = false;
    this.consumeType = consumeType;
    this.messageModel = messageModel;
    this.consumeFromWhere = consumeFromWhere;

    ClientChannelInfo info = this.channelInfoTable.get(clientChannelInfo.getChannel());
    if (null == info) {
      ClientChannelInfo prev =
          this.channelInfoTable.put(clientChannelInfo.getChannel(), clientChannelInfo);
      if (null == prev) {
        log.info(
            "new consumer connected, group: {} {} {} channel: {}",
            this.groupName,
            consumeType,
            messageModel,
            clientChannelInfo.toString());
        updated = true;
      }

      info = clientChannelInfo;
    }

    this.lastUpdateTimestamp = System.currentTimeMillis();
    info.setLastUpdateTimestamp(this.lastUpdateTimestamp);

    return updated;
  }