activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1378057 - in /activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra: ActiveMQConnectionRequestInfo.java ActiveMQConnectionSupport.java
Date Tue, 28 Aug 2012 10:17:59 GMT
Author: dejanb
Date: Tue Aug 28 10:17:58 2012
New Revision: 1378057

URL: http://svn.apache.org/viewvc?rev=1378057&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3986 - optimizeDurablePrefetch on ActiveMQConnectionSupport

Modified:
    activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionRequestInfo.java
    activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionSupport.java

Modified: activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionRequestInfo.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionRequestInfo.java?rev=1378057&r1=1378056&r2=1378057&view=diff
==============================================================================
--- activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionRequestInfo.java
(original)
+++ activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionRequestInfo.java
Tue Aug 28 10:17:58 2012
@@ -251,6 +251,10 @@ public class ActiveMQConnectionRequestIn
         return Integer.valueOf(prefetchPolicy().getDurableTopicPrefetch());
     }
 
+    public Integer getOptimizeDurableTopicPrefetch() {
+        return Integer.valueOf(prefetchPolicy().getOptimizeDurableTopicPrefetch());
+    }
+
     public Integer getInputStreamPrefetch() {
         return Integer.valueOf(prefetchPolicy().getInputStreamPrefetch());
     }

Modified: activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionSupport.java?rev=1378057&r1=1378056&r2=1378057&view=diff
==============================================================================
--- activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionSupport.java
(original)
+++ activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQConnectionSupport.java
Tue Aug 28 10:17:58 2012
@@ -209,6 +209,23 @@ public class ActiveMQConnectionSupport {
     }
 
     /**
+     * @param optimizeDurableTopicPrefetch
+     */
+    public void setOptimizeDurableTopicPrefetch(Integer optimizeDurableTopicPrefetch) {
+        if ( log.isDebugEnabled() ) {
+            log.debug("setting [optimizeDurableTopicPrefetch] to: " + optimizeDurableTopicPrefetch);
+        }
+        info.setOptimizeDurableTopicPrefetch(optimizeDurableTopicPrefetch);
+    }
+
+    /**
+     * @return durable topic prefetch
+     */
+    public Integer getOptimizeDurableTopicPrefetch() {
+        return info.getOptimizeDurableTopicPrefetch();
+    }
+
+    /**
      * @param durableTopicPrefetch
      */
     public void setDurableTopicPrefetch(Integer durableTopicPrefetch) {



Mime
View raw message