|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.alibaba.rocketmq.common.message.MessageDecoder
public class MessageDecoder
消息解码
| 字段摘要 | |
|---|---|
static int |
MessageFlagPostion
|
static int |
MessageMagicCode
|
static int |
MessageMagicCodePostion
存储记录各个字段位置 |
static int |
MessagePhysicOffsetPostion
|
static int |
MessageStoreTimestampPostion
|
static int |
MSG_ID_LENGTH
消息ID定长 |
static char |
NAME_VALUE_SEPARATOR
序列化消息属性 |
static char |
PROPERTY_SEPARATOR
|
| 构造方法摘要 | |
|---|---|
MessageDecoder()
|
|
| 方法摘要 | |
|---|---|
static String |
createMessageId(ByteBuffer input,
ByteBuffer addr,
long offset)
|
static String |
createMessageId(SocketAddress socketAddress,
long transactionIdhashCode)
|
static MessageExt |
decode(ByteBuffer byteBuffer)
|
static MessageExt |
decode(ByteBuffer byteBuffer,
boolean readBody)
客户端使用,SLAVE也会使用 |
static MessageExt |
decode(ByteBuffer byteBuffer,
boolean readBody,
boolean deCompressBody)
|
static MessageId |
decodeMessageId(String msgId)
|
static List<MessageExt> |
decodes(ByteBuffer byteBuffer)
|
static List<MessageExt> |
decodes(ByteBuffer byteBuffer,
boolean readBody)
客户端使用 |
static byte[] |
encode(MessageExt messageExt)
|
static String |
messageProperties2String(Map<String,String> properties)
|
static Map<String,String> |
string2messageProperties(String properties)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int MSG_ID_LENGTH
public static final int MessageMagicCodePostion
public static final int MessageFlagPostion
public static final int MessagePhysicOffsetPostion
public static final int MessageStoreTimestampPostion
public static final int MessageMagicCode
public static final char NAME_VALUE_SEPARATOR
public static final char PROPERTY_SEPARATOR
| 构造方法详细信息 |
|---|
public MessageDecoder()
| 方法详细信息 |
|---|
public static String createMessageId(ByteBuffer input,
ByteBuffer addr,
long offset)
public static String createMessageId(SocketAddress socketAddress,
long transactionIdhashCode)
public static MessageId decodeMessageId(String msgId)
throws UnknownHostException
UnknownHostExceptionpublic static MessageExt decode(ByteBuffer byteBuffer)
public static MessageExt decode(ByteBuffer byteBuffer,
boolean readBody)
public static byte[] encode(MessageExt messageExt)
throws Exception
Exception
public static MessageExt decode(ByteBuffer byteBuffer,
boolean readBody,
boolean deCompressBody)
public static List<MessageExt> decodes(ByteBuffer byteBuffer)
public static List<MessageExt> decodes(ByteBuffer byteBuffer,
boolean readBody)
public static String messageProperties2String(Map<String,String> properties)
public static Map<String,String> string2messageProperties(String properties)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||