You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rg...@apache.org on 2007/01/29 12:08:43 UTC

svn commit: r501008 - /incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java

Author: rgreig
Date: Mon Jan 29 03:08:42 2007
New Revision: 501008

URL: http://svn.apache.org/viewvc?view=rev&rev=501008
Log:
QPID-324 : Patch supplied by Rob Godfrey - Only send byte indicating topic / queue / other in properties field table, not whole destination


Modified:
    incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java

Modified: incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java?view=diff&rev=501008&r1=501007&r2=501008
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java (original)
+++ incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java Mon Jan 29 03:08:42 2007
@@ -58,6 +58,10 @@
     private static final int IS_EXCLUSIVE_MASK = 0x2;
     private static final int IS_AUTODELETE_MASK = 0x4;
 
+    public static final byte QUEUE_TYPE = 1;
+    public static final byte TOPIC_TYPE = 2;
+    public static final byte UNKNOWN_TYPE = 3;
+
     protected AMQDestination(String url) throws URLSyntaxException
     {
         this(new AMQBindingURL(url));
@@ -344,7 +348,7 @@
         {
             return false;
         }
-        if (_isExclusive != that._isExclusive)
+  /*      if (_isExclusive != that._isExclusive)
         {
             return false;
         }
@@ -352,6 +356,7 @@
         {
             return false;
         }
+        */
         return true;
     }
 
@@ -365,8 +370,8 @@
         {
             result = 29 * result + _queueName.hashCode();
         }
-        result = result * (_isExclusive ? 13 : 7);
-        result = result * (_isAutoDelete ? 13 : 7);
+//        result = result * (_isExclusive ? 13 : 7);
+//        result = result * (_isAutoDelete ? 13 : 7);
         return result;
     }