You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2017/04/05 16:43:15 UTC

qpid-jms git commit: QPIDJMS-274 Add some additional API docs for the default policy

Repository: qpid-jms
Updated Branches:
  refs/heads/master 6157f2408 -> 2ba63c4b4


QPIDJMS-274 Add some additional API docs for the default policy

Update the API docs on the default redelivery policy.

This closes #5

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/2ba63c4b
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/2ba63c4b
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/2ba63c4b

Branch: refs/heads/master
Commit: 2ba63c4b4f5307973224958129180e5652ec7e92
Parents: 6157f24
Author: Timothy Bish <ta...@gmail.com>
Authored: Wed Apr 5 12:43:09 2017 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Wed Apr 5 12:43:09 2017 -0400

----------------------------------------------------------------------
 .../jms/policy/JmsDefaultRedeliveryPolicy.java  | 23 ++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/2ba63c4b/qpid-jms-client/src/main/java/org/apache/qpid/jms/policy/JmsDefaultRedeliveryPolicy.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/policy/JmsDefaultRedeliveryPolicy.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/policy/JmsDefaultRedeliveryPolicy.java
index efa1f05..83d8ca2 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/policy/JmsDefaultRedeliveryPolicy.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/policy/JmsDefaultRedeliveryPolicy.java
@@ -102,7 +102,16 @@ public class JmsDefaultRedeliveryPolicy implements JmsRedeliveryPolicy {
     }
 
     /**
-     * Set the default outcome to use when rejecting messages.
+     * Set the default outcome to use when rejecting messages using an numeric value, the
+     * possible values are:
+     *
+     * <p><ul>
+     *  <li>ACCEPTED = 1
+     *  <li>REJECTED = 2
+     *  <li>RELEASED = 3
+     *  <li>MODIFIED_FAILED = 4
+     *  <li>MODIFIED_FAILED_UNDELIVERABLE = 5
+     * </ul><p>
      *
      * @param outcome
      * 		the default outcome applied to a rejected delivery.
@@ -112,7 +121,17 @@ public class JmsDefaultRedeliveryPolicy implements JmsRedeliveryPolicy {
     }
 
     /**
-     * Set the default outcome to use when rejecting messages.
+     * Set the default outcome to use when rejecting messages using a string value which can
+     * either be the string version of the numeric outcome values or the string name of the
+     * desired outcome, the string names allowed are:
+     *
+     * <p><ul>
+     *  <li>ACCEPTED
+     *  <li>REJECTED
+     *  <li>RELEASED
+     *  <li>MODIFIED_FAILED
+     *  <li>MODIFIED_FAILED_UNDELIVERABLE
+     * </ul><p>
      *
      * @param outcome
      * 		the default outcome applied to a rejected delivery.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org