public class Message extends Object implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Message.SystemPropKey |
| 构造器和说明 |
|---|
Message() |
Message(String topic,
String tags,
byte[] body) |
Message(String topic,
String tag,
String key,
byte[] body) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getBody() |
String |
getKey() |
String |
getMsgID() |
int |
getReconsumeTimes() |
long |
getStartDeliverTime() |
String |
getTag() |
String |
getTopic() |
Properties |
getUserProperties() |
String |
getUserProperties(String key) |
void |
putUserProperties(String key,
String value) |
void |
setBody(byte[] body) |
void |
setKey(String key) |
void |
setMsgID(String msgid) |
void |
setReconsumeTimes(int value) |
void |
setStartDeliverTime(long value) |
void |
setTag(String tag) |
void |
setTopic(String topic) |
void |
setUserProperties(Properties userProperties) |
String |
toString() |
public String getTopic()
public void setTopic(String topic)
public String getTag()
public void setTag(String tag)
public String getKey()
public void setKey(String key)
public String getMsgID()
public void setMsgID(String msgid)
public Properties getUserProperties()
public void setUserProperties(Properties userProperties)
public byte[] getBody()
public void setBody(byte[] body)
public void setReconsumeTimes(int value)
public int getReconsumeTimes()
public void setStartDeliverTime(long value)
public long getStartDeliverTime()
Copyright © 2012-2015. All Rights Reserved.