admin 管理员组文章数量: 1086019
2024年4月14日发(作者:listview设置item间距)
MessageExt msgExt = new MessageExt();
// 1 TOTALSIZE
int storeSize = ();
reSize(storeSize);
if (storeSize<=0){
return null;
}
// 2 MAGICCODE
();
// 3 BODYCRC
int bodyCRC = ();
yCRC(bodyCRC);
// 4 QUEUEID
int queueId = ();
ueId(queueId);
// 5 FLAG
int flag = ();
g(flag);
// 6 QUEUEOFFSET
long queueOffset = g();
ueOffset(queueOffset);
// 7 PHYSICALOFFSET
long physicOffset = g();
mitLogOffset(physicOffset);
// 8 SYSFLAG
int sysFlag = ();
Flag(sysFlag);
// 9 BORNTIMESTAMP
long bornTimeStamp = g();
nTimestamp(bornTimeStamp);
// 10 BORNHOST
int bornhostIPLength = (sysFlag & ST_V6_FLAG) == 0 ? 4 : 16;
byte[] bornHost = new byte[bornhostIPLength];
(bornHost, 0, bornhostIPLength);
int port = ();
nHost(new InetSocketAddress(ddress(bornHost), port));
// 11 STORETIMESTAMP
long storeTimestamp = g();
reTimestamp(storeTimestamp);
// 12 STOREHOST
int storehostIPLength = (sysFlag & OSTADDRESS_V6_FLAG) == 0 ? 4 : 16;
byte[] storeHost = new byte[storehostIPLength];
(storeHost, 0, storehostIPLength);
port = ();
reHost(new InetSocketAddress(ddress(storeHost), port));
// 13 RECONSUMETIMES
int reconsumeTimes = ();
onsumeTimes(reconsumeTimes);
// 14 Prepared Transaction Offset
long preparedTransactionOffset = g();
paredTransactionOffset(preparedTransactionOffset);
// 15 BODY
int bodyLen = ();
if (bodyLen > 0) {
byte[] body = new byte[bodyLen];
(body);
版权声明:本文标题:RocketMQ消息存储和查询实战 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1713107695a620230.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论