activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r979310 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands: BaseCommand.h Command.h ConnectionControl.h
Date Mon, 26 Jul 2010 14:30:35 GMT
Author: tabish
Date: Mon Jul 26 14:30:35 2010
New Revision: 979310

URL: http://svn.apache.org/viewvc?rev=979310&view=rev
Log:
Update Commands

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/BaseCommand.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Command.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ConnectionControl.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/BaseCommand.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/BaseCommand.h?rev=979310&r1=979309&r2=979310&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/BaseCommand.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/BaseCommand.h Mon
Jul 26 14:30:35 2010
@@ -89,6 +89,9 @@ namespace commands{
             return BaseDataStructure::equals( value );
         }
 
+        virtual bool isConnectionControl() const {
+            return false;
+        }
         virtual bool isConnectionInfo() const {
             return false;
         }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Command.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Command.h?rev=979310&r1=979309&r2=979310&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Command.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Command.h Mon Jul
26 14:30:35 2010
@@ -80,6 +80,7 @@ namespace commands{
          * Command is of a certain type.  These are the most commonly used Commands
          * and we save several casts and some ugly code by just adding these here.
          */
+        virtual bool isConnectionControl() const = 0;
         virtual bool isConnectionInfo() const = 0;
         virtual bool isConsumerInfo() const = 0;
         virtual bool isBrokerInfo() const = 0;

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ConnectionControl.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ConnectionControl.h?rev=979310&r1=979309&r2=979310&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ConnectionControl.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ConnectionControl.h
Mon Jul 26 14:30:35 2010
@@ -106,6 +106,13 @@ namespace commands{
         virtual bool isRebalanceConnection() const;
         virtual void setRebalanceConnection( bool rebalanceConnection );
 
+        /**
+         * @return an answer of true to the isConnectionControl() query.
+         */
+        virtual bool isConnectionControl() const {
+            return true;
+        }
+
         virtual Pointer<Command> visit( activemq::state::CommandVisitor* visitor );
 
     };



Mime
View raw message