mirror of https://github.com/apache/activemq.git
allow a message to be marked as being persistent or not
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c739dba503
commit
f82bd11751
|
@ -103,6 +103,11 @@ class Send implements StompCommand {
|
|||
|
||||
msg.setJMSReplyTo(DestinationNamer.convert((String) headers.remove(Stomp.Headers.Send.REPLY_TO)));
|
||||
|
||||
Object persistent = headers.remove(Stomp.Headers.Send.PERSISTENT);
|
||||
if (persistent != null) {
|
||||
msg.setPersistent(asBool(persistent));
|
||||
}
|
||||
|
||||
// now the general headers
|
||||
msg.setProperties(headers);
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ public interface Stomp {
|
|||
String EXPIRATION_TIME = "expires";
|
||||
String PRIORITY = "priority";
|
||||
String TYPE = "type";
|
||||
Object PERSISTENT = "persistent";
|
||||
}
|
||||
|
||||
public interface Message {
|
||||
|
|
Loading…
Reference in New Issue