diff options
author | Robert Gemmell <robbie@apache.org> | 2009-04-10 20:00:52 +0000 |
---|---|---|
committer | Robert Gemmell <robbie@apache.org> | 2009-04-10 20:00:52 +0000 |
commit | b50a93c2922b517cd7384b1054d863a588ef62e7 (patch) | |
tree | 85c38d271ba9f4fee6c23d832bce5dca21ea6eff /qpid/java/common | |
parent | c2f9da7dc06892f89b5b6fd7f1725c609a5e759a (diff) | |
download | qpid-python-b50a93c2922b517cd7384b1054d863a588ef62e7.tar.gz |
QPID-1798: Update AMQQueueMBean to use new constant value of DeliveryMode, replacing previously incorrect literal value used in conditional statement and thus preventing the reversal of delivery mode status. Also update other broker classes making similar comparisons using a literal value to use a constant
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@764026 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common')
-rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java b/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java index 47b5c02beb..c7d89a9927 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/framing/BasicContentHeaderProperties.java @@ -27,6 +27,10 @@ import org.slf4j.LoggerFactory; public class BasicContentHeaderProperties implements CommonContentHeaderProperties { + //persistent & non-persistent constants, values as per JMS DeliveryMode + public static final int NON_PERSISTENT = 1; + public static final int PERSISTENT = 2; + private static final Logger _logger = LoggerFactory.getLogger(BasicContentHeaderProperties.class); private static final AMQShortString ZERO_STRING = null; |