提交 d54629c3 编写于 作者: A ayanamist

Add abbreviation for fields of PopCheckPoint to save commit log size.

上级 f868d992
...@@ -16,19 +16,30 @@ ...@@ -16,19 +16,30 @@
*/ */
package org.apache.rocketmq.store.pop; package org.apache.rocketmq.store.pop;
import com.alibaba.fastjson.annotation.JSONField;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
public class PopCheckPoint { public class PopCheckPoint {
@JSONField(name = "so")
private long startOffset; private long startOffset;
@JSONField(name = "pt")
private long popTime; private long popTime;
@JSONField(name = "it")
private long invisibleTime; private long invisibleTime;
@JSONField(name = "bm")
private int bitMap; private int bitMap;
@JSONField(name = "n")
private byte num; private byte num;
@JSONField(name = "q")
private byte queueId; private byte queueId;
@JSONField(name = "t")
private String topic; private String topic;
@JSONField(name = "c")
private String cid; private String cid;
@JSONField(name = "ro")
private long reviveOffset; private long reviveOffset;
@JSONField(name = "d")
private List<Integer> queueOffsetDiff; private List<Integer> queueOffsetDiff;
public long getReviveOffset() { public long getReviveOffset() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册