/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#pragma once

#include <cstdint>
#include <cstdlib>
#include <sstream>
#include <utility>

#include "MixAll.h"
#include "absl/time/time.h"
#include "rocketmq/MQMessageExt.h"

ROCKETMQ_NAMESPACE_BEGIN

struct ReceiveMessageResult {
  absl::Time pop_time;
  absl::Duration invisible_time;

  std::vector<MQMessageExt> messages;

  std::string source_host;

  std::int64_t min_offset{0};
  std::int64_t next_offset{0};
  std::int64_t max_offset{0};
};

ROCKETMQ_NAMESPACE_END