admin
2020-03-06 ce2c33ba07d0b0cbb14ec6b37b72b19d073b15af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.qcloud.cmq;
 
/**
 * topic meta class .
 * TopicMeta class 
 * createTime and lastModifyTime default set 0
 * you should set createTime and lastModifyTime
 * @author York.
 *         Created 2016年9月26日.
 */
public class TopicMeta {
    // 当前该主题的消息堆积数
    public  int msgCount;
    // 消息最大长度,取值范围1024-65536 Byte(即1-64K),默认65536
    public  int maxMsgSize;
    //消息在主题中最长存活时间,从发送到该主题开始经过此参数指定的时间后,
    //不论消息是否被成功推送给用户都将被删除,单位为秒。固定为一天,该属性不能修改。
    public  int msgRetentionSeconds;
    //创建时间
    public  int createTime;
    //修改属性信息最近时间
    public  int lastModifyTime;
    public  int loggingEnabled;
    public  int filterType ;
    
    public TopicMeta()
    {
        msgCount = 0;
        maxMsgSize= 65536;
        msgRetentionSeconds = 86400;
        createTime = 0;
        lastModifyTime = 0;
        loggingEnabled = 0;
        filterType = 1 ;
    }
             
}