コード例 #1
0
  private boolean validate(Topic topic, ConsumerContext context) {
    if (Endpoint.BROKER.equals(topic.getEndpointType())) {
      if (!m_metaService.containsConsumerGroup(topic.getName(), context.getGroupId())) {
        log.error(
            "Consumer group {} not found for topic {}, please add consumer group in Hermes-Portal first.",
            context.getGroupId(),
            topic.getName());
        return false;
      }
    }

    return true;
  }