From f73e2097dd663f973b5ce5361fdd5677505a3947 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Thu, 5 Jan 2006 10:51:12 +0000 Subject: [PATCH] tidied up code a little git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366153 13f79535-47bb-0310-9956-ffa450edef68 --- .../ra/ActiveMQManagedConnectionFactory.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQManagedConnectionFactory.java b/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQManagedConnectionFactory.java index db5379087a..0f804c114f 100755 --- a/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQManagedConnectionFactory.java +++ b/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQManagedConnectionFactory.java @@ -177,6 +177,11 @@ public class ActiveMQManagedConnectionFactory implements ManagedConnectionFactor info.setUseInboundSession(useInboundSession); } + public boolean isUseInboundSessionEnabled() { + return info.isUseInboundSessionEnabled(); + } + + // Redelivery policy configuration public Long getInitialRedeliveryDelay() { return info.getInitialRedeliveryDelay(); } @@ -193,10 +198,6 @@ public class ActiveMQManagedConnectionFactory implements ManagedConnectionFactor return info.getRedeliveryUseExponentialBackOff(); } - public boolean isUseInboundSessionEnabled() { - return info.isUseInboundSessionEnabled(); - } - public void setInitialRedeliveryDelay(Long value) { info.setInitialRedeliveryDelay(value); } @@ -209,6 +210,12 @@ public class ActiveMQManagedConnectionFactory implements ManagedConnectionFactor info.setRedeliveryBackOffMultiplier(value); } + public void setRedeliveryUseExponentialBackOff(Boolean value) { + info.setRedeliveryUseExponentialBackOff(value); + } + + + // Prefetch policy configuration public Integer getDurableTopicPrefetch() { return info.getDurableTopicPrefetch(); } @@ -249,10 +256,6 @@ public class ActiveMQManagedConnectionFactory implements ManagedConnectionFactor info.setQueuePrefetch(queuePrefetch); } - public void setRedeliveryUseExponentialBackOff(Boolean value) { - info.setRedeliveryUseExponentialBackOff(value); - } - public void setTopicPrefetch(Integer topicPrefetch) { info.setTopicPrefetch(topicPrefetch); }