/** * 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.common.message; public class MessageConst { /** * 消息关键词,多个Key用KEY_SEPARATOR隔开(查询消息使用) */ public static final String PROPERTY_KEYS = "KEYS"; /** * 消息标签,只支持设置一个Tag(服务端消息过滤使用) */ public static final String PROPERTY_TAGS = "TAGS"; /** * 是否等待服务器将消息存储完毕再返回(可能是等待刷盘完成或者等待同步复制到其他服务器) */ public static final String PROPERTY_WAIT_STORE_MSG_OK = "WAIT"; /** * 消息延时投递时间级别,0表示不延时,大于0表示特定延时级别(具体级别在服务器端定义) */ public static final String PROPERTY_DELAY_TIME_LEVEL = "DELAY"; /** * 内部使用 */ public static final String PROPERTY_RETRY_TOPIC = "RETRY_TOPIC"; public static final String PROPERTY_REAL_TOPIC = "REAL_TOPIC"; public static final String PROPERTY_REAL_QUEUE_ID = "REAL_QID"; public static final String PROPERTY_TRANSACTION_PREPARED = "TRAN_MSG"; public static final String PROPERTY_PRODUCER_GROUP = "PGROUP"; public static final String PROPERTY_MIN_OFFSET = "MIN_OFFSET"; public static final String PROPERTY_MAX_OFFSET = "MAX_OFFSET"; public static final String KEY_SEPARATOR = " "; }