public class Message extends Object implements Serializable
| 构造器和说明 |
|---|
Message() |
Message(String topic,
byte[] body) |
Message(String topic,
String tags,
byte[] body) |
Message(String topic,
String tags,
String keys,
byte[] body) |
Message(String topic,
String tags,
String keys,
int flag,
byte[] body,
boolean waitStoreMsgOK) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getBody() |
String |
getBuyerId() |
int |
getDelayTimeLevel() |
int |
getFlag() |
String |
getKeys() |
Map<String,String> |
getProperties() |
String |
getProperty(String name) |
String |
getTags() |
String |
getTopic() |
String |
getUserProperty(String name) |
boolean |
isWaitStoreMsgOK() |
void |
putUserProperty(String name,
String value) |
void |
setBody(byte[] body) |
void |
setBuyerId(String buyerId) |
void |
setDelayTimeLevel(int level) |
void |
setFlag(int flag) |
void |
setKeys(Collection<String> keys) |
void |
setKeys(String keys) |
void |
setTags(String tags) |
void |
setTopic(String topic) |
void |
setWaitStoreMsgOK(boolean waitStoreMsgOK) |
String |
toString() |
public Message()
public Message(String topic, byte[] body)
public Message(String topic, String tags, String keys, int flag, byte[] body, boolean waitStoreMsgOK)
public void setKeys(String keys)
public String getTopic()
public void setTopic(String topic)
public String getTags()
public void setTags(String tags)
public String getKeys()
public void setKeys(Collection<String> keys)
public int getDelayTimeLevel()
public void setDelayTimeLevel(int level)
public boolean isWaitStoreMsgOK()
public void setWaitStoreMsgOK(boolean waitStoreMsgOK)
public int getFlag()
public void setFlag(int flag)
public byte[] getBody()
public void setBody(byte[] body)
public String getBuyerId()
public void setBuyerId(String buyerId)
Copyright © 2012–2016. All rights reserved.