Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
Rocketmq
提交
bc4ecb3e
R
Rocketmq
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
Rocketmq
与 Fork 源项目一致
Fork自
Apache RocketMQ / Rocketmq
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rocketmq
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
bc4ecb3e
编写于
4月 20, 2021
作者:
灼
灼华
提交者:
GitHub
4月 20, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ISSUE #2805] remove redundant package imports
上级
b4cee1b1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
8 deletion
+8
-8
common/src/main/java/org/apache/rocketmq/common/message/MessageDecoder.java
...va/org/apache/rocketmq/common/message/MessageDecoder.java
+8
-8
未找到文件。
common/src/main/java/org/apache/rocketmq/common/message/MessageDecoder.java
浏览文件 @
bc4ecb3e
...
@@ -105,7 +105,7 @@ public class MessageDecoder {
...
@@ -105,7 +105,7 @@ public class MessageDecoder {
*
*
* @param byteBuffer msg commit log buffer.
* @param byteBuffer msg commit log buffer.
*/
*/
public
static
Map
<
String
,
String
>
decodeProperties
(
java
.
nio
.
ByteBuffer
byteBuffer
)
{
public
static
Map
<
String
,
String
>
decodeProperties
(
ByteBuffer
byteBuffer
)
{
int
sysFlag
=
byteBuffer
.
getInt
(
SYSFLAG_POSITION
);
int
sysFlag
=
byteBuffer
.
getInt
(
SYSFLAG_POSITION
);
int
bornhostLength
=
(
sysFlag
&
MessageSysFlag
.
BORNHOST_V6_FLAG
)
==
0
?
8
:
20
;
int
bornhostLength
=
(
sysFlag
&
MessageSysFlag
.
BORNHOST_V6_FLAG
)
==
0
?
8
:
20
;
int
storehostAddressLength
=
(
sysFlag
&
MessageSysFlag
.
STOREHOSTADDRESS_V6_FLAG
)
==
0
?
8
:
20
;
int
storehostAddressLength
=
(
sysFlag
&
MessageSysFlag
.
STOREHOSTADDRESS_V6_FLAG
)
==
0
?
8
:
20
;
...
@@ -141,15 +141,15 @@ public class MessageDecoder {
...
@@ -141,15 +141,15 @@ public class MessageDecoder {
return
null
;
return
null
;
}
}
public
static
MessageExt
decode
(
java
.
nio
.
ByteBuffer
byteBuffer
)
{
public
static
MessageExt
decode
(
ByteBuffer
byteBuffer
)
{
return
decode
(
byteBuffer
,
true
,
true
,
false
);
return
decode
(
byteBuffer
,
true
,
true
,
false
);
}
}
public
static
MessageExt
clientDecode
(
java
.
nio
.
ByteBuffer
byteBuffer
,
final
boolean
readBody
)
{
public
static
MessageExt
clientDecode
(
ByteBuffer
byteBuffer
,
final
boolean
readBody
)
{
return
decode
(
byteBuffer
,
readBody
,
true
,
true
);
return
decode
(
byteBuffer
,
readBody
,
true
,
true
);
}
}
public
static
MessageExt
decode
(
java
.
nio
.
ByteBuffer
byteBuffer
,
final
boolean
readBody
)
{
public
static
MessageExt
decode
(
ByteBuffer
byteBuffer
,
final
boolean
readBody
)
{
return
decode
(
byteBuffer
,
readBody
,
true
,
false
);
return
decode
(
byteBuffer
,
readBody
,
true
,
false
);
}
}
...
@@ -264,12 +264,12 @@ public class MessageDecoder {
...
@@ -264,12 +264,12 @@ public class MessageDecoder {
}
}
public
static
MessageExt
decode
(
public
static
MessageExt
decode
(
java
.
nio
.
ByteBuffer
byteBuffer
,
final
boolean
readBody
,
final
boolean
deCompressBody
)
{
ByteBuffer
byteBuffer
,
final
boolean
readBody
,
final
boolean
deCompressBody
)
{
return
decode
(
byteBuffer
,
readBody
,
deCompressBody
,
false
);
return
decode
(
byteBuffer
,
readBody
,
deCompressBody
,
false
);
}
}
public
static
MessageExt
decode
(
public
static
MessageExt
decode
(
java
.
nio
.
ByteBuffer
byteBuffer
,
final
boolean
readBody
,
final
boolean
deCompressBody
,
final
boolean
isClient
)
{
ByteBuffer
byteBuffer
,
final
boolean
readBody
,
final
boolean
deCompressBody
,
final
boolean
isClient
)
{
try
{
try
{
MessageExt
msgExt
;
MessageExt
msgExt
;
...
@@ -391,11 +391,11 @@ public class MessageDecoder {
...
@@ -391,11 +391,11 @@ public class MessageDecoder {
return
null
;
return
null
;
}
}
public
static
List
<
MessageExt
>
decodes
(
java
.
nio
.
ByteBuffer
byteBuffer
)
{
public
static
List
<
MessageExt
>
decodes
(
ByteBuffer
byteBuffer
)
{
return
decodes
(
byteBuffer
,
true
);
return
decodes
(
byteBuffer
,
true
);
}
}
public
static
List
<
MessageExt
>
decodes
(
java
.
nio
.
ByteBuffer
byteBuffer
,
final
boolean
readBody
)
{
public
static
List
<
MessageExt
>
decodes
(
ByteBuffer
byteBuffer
,
final
boolean
readBody
)
{
List
<
MessageExt
>
msgExts
=
new
ArrayList
<
MessageExt
>();
List
<
MessageExt
>
msgExts
=
new
ArrayList
<
MessageExt
>();
while
(
byteBuffer
.
hasRemaining
())
{
while
(
byteBuffer
.
hasRemaining
())
{
MessageExt
msgExt
=
clientDecode
(
byteBuffer
,
readBody
);
MessageExt
msgExt
=
clientDecode
(
byteBuffer
,
readBody
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录