activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1330352 - /activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/ConsumerInfoHeaderGenerator.java
Date Wed, 25 Apr 2012 15:37:28 GMT
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 );
     }



Mime
View raw message