summaryrefslogtreecommitdiff
path: root/java/common/src
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2013-10-13 22:21:59 +0000
committerRobert Gemmell <robbie@apache.org>2013-10-13 22:21:59 +0000
commit1606e2f9884304a43e50219304245a5c8969b83d (patch)
treeec82f1c2f6cf8028eb0f519e9c4d87a6258ef5d9 /java/common/src
parent26a81fd0bcf6c37acd641214c446591950d456bf (diff)
downloadqpid-python-1606e2f9884304a43e50219304245a5c8969b83d.tar.gz
QPID-5223: add system property to toggle populating the 'expiration' header with the raw TTL value instead of the actual expiration time, for interop with e.g. RabbitMQ
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1531761 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src')
-rw-r--r--java/common/src/main/java/org/apache/qpid/configuration/ClientProperties.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/configuration/ClientProperties.java b/java/common/src/main/java/org/apache/qpid/configuration/ClientProperties.java
index a0140785f4..51dad51bf9 100644
--- a/java/common/src/main/java/org/apache/qpid/configuration/ClientProperties.java
+++ b/java/common/src/main/java/org/apache/qpid/configuration/ClientProperties.java
@@ -208,6 +208,13 @@ public class ClientProperties
public static final String QPID_MAX_CACHED_ADDR_OPTION_STRINGS = "qpid.max_cached_address_option_strings";
public static final int DEFAULT_MAX_CACHED_ADDR_OPTION_STRINGS = 10;
+ /**
+ * System property to control whether the 0-8/0-9/0-9-1 client will set the message
+ * 'expiration' header using the computed expiration value (default, when false) or instead set
+ * it to the raw TTL (when true). May be necessary for interop with other vendors.
+ */
+ public static final String SET_EXPIRATION_AS_TTL = "qpid.set_expiration_as_ttl";
+
private ClientProperties()
{
//No instances