com.alibaba.rocketmq.store.GetMessageStatus Maven / Gradle / Ivy
/**
* Copyright (C) 2010-2013 Alibaba Group Holding Limited
*
* Licensed 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.
*/
package com.alibaba.rocketmq.store;
/**
* 访问消息返回的状态码
*
* @author shijia.wxr
* @since 2013-7-21
*/
public enum GetMessageStatus {
// 找到消息
FOUND,
// offset正确,但是过滤后没有匹配的消息
NO_MATCHED_MESSAGE,
// offset正确,但是物理队列消息正在被删除
MESSAGE_WAS_REMOVING,
// offset正确,但是从逻辑队列没有找到,可能正在被删除
OFFSET_FOUND_NULL,
// offset错误,严重溢出
OFFSET_OVERFLOW_BADLY,
// offset错误,溢出1个
OFFSET_OVERFLOW_ONE,
// offset错误,太小了
OFFSET_TOO_SMALL,
// 没有对应的逻辑队列
NO_MATCHED_LOGIC_QUEUE,
// 队列中一条消息都没有
NO_MESSAGE_IN_QUEUE,
}