You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/04/25 17:37:28 UTC
svn commit: r1330352 -
/activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/ConsumerInfoHeaderGenerator.java
Author: tabish
Date: Wed Apr 25 15:37:28 2012
New Revision: 1330352
URL: http://svn.apache.org/viewvc?rev=1330352&view=rev
Log:
Adds a current prefetch size member to ConsumerInfo
Modified:
activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/ConsumerInfoHeaderGenerator.java
Modified: activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/ConsumerInfoHeaderGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/ConsumerInfoHeaderGenerator.java?rev=1330352&r1=1330351&r2=1330352&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/ConsumerInfoHeaderGenerator.java (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/ConsumerInfoHeaderGenerator.java Wed Apr 25 15:37:28 2012
@@ -29,9 +29,28 @@ public class ConsumerInfoHeaderGenerator
super.populateIncludeFilesSet();
}
+ protected void generateProperties( PrintWriter out ) {
+
+ super.generateProperties(out);
+
+ out.println(" private:");
+ out.println("");
+ out.println(" // Prefetch size that is controlled by the Broker." );
+ out.println(" int currentPrefetchSize;");
+ out.println("");
+ }
+
protected void generateAdditonalMembers( PrintWriter out ) {
out.println(" Pointer<RemoveInfo> createRemoveCommand() const;");
out.println("");
+ out.println(" int getCurrentPrefetchSize() const {");
+ out.println(" return this->currentPrefetchSize;");
+ out.println(" }");
+ out.println("");
+ out.println(" void setCurrentPrefetchSize(int currentPrefetchSize) {");
+ out.println(" this->currentPrefetchSize = currentPrefetchSize;");
+ out.println(" }");
+ out.println("");
super.generateAdditonalMembers( out );
}