activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r997042 - /activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/PrefetchPolicy.cpp
Date Tue, 14 Sep 2010 19:07:12 GMT
Author: tabish
Date: Tue Sep 14 19:07:12 2010
New Revision: 997042

URL: http://svn.apache.org/viewvc?rev=997042&view=rev
Log:
Allow a configuration option of all for PrefetchPolicy.

Modified:
    activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/PrefetchPolicy.cpp

Modified: activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/PrefetchPolicy.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/PrefetchPolicy.cpp?rev=997042&r1=997041&r2=997042&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/PrefetchPolicy.cpp
(original)
+++ activemq/activemq-cpp/branches/activemq-cpp-3.2.x/activemq-cpp/src/main/activemq/core/PrefetchPolicy.cpp
Tue Sep 14 19:07:12 2010
@@ -53,6 +53,15 @@ void PrefetchPolicy::configure( const de
             this->setTopicPrefetch( Integer::parseInt(
                 properties.getProperty( "cms.PrefetchPolicy.topicPrefetch" ) ) );
         }
+
+        if( properties.hasProperty( "cms.PrefetchPolicy.all" ) ) {
+            int value = Integer::parseInt( properties.getProperty( "cms.PrefetchPolicy.all"
) );
+
+            this->setDurableTopicPrefetch( value );
+            this->setQueueBrowserPrefetch( value );
+            this->setQueuePrefetch( value );
+            this->setTopicPrefetch( value );
+        }
     }
     DECAF_CATCH_RETHROW( Exception )
     DECAF_CATCHALL_THROW( Exception )



Mime
View raw message