diff options
author | Robert Greig <rgreig@apache.org> | 2007-01-29 11:08:42 +0000 |
---|---|---|
committer | Robert Greig <rgreig@apache.org> | 2007-01-29 11:08:42 +0000 |
commit | 4570841f7580a30fd4221723321a7203c2a69d71 (patch) | |
tree | 859969c78f26a9990a9253661cd606d0ad7783cf /java/client/src | |
parent | 0f6ff0710878a03d5a7b6a8c840b022bf77fd9e1 (diff) | |
download | qpid-python-4570841f7580a30fd4221723321a7203c2a69d71.tar.gz |
QPID-324 : Patch supplied by Rob Godfrey - Only send byte indicating topic / queue / other in properties field table, not whole destination
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@501008 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src')
-rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/AMQDestination.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java b/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java index b634f48c1e..bc9e7137dc 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQDestination.java @@ -58,6 +58,10 @@ public abstract class AMQDestination implements Destination, Referenceable 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 @@ public abstract class AMQDestination implements Destination, Referenceable { return false; } - if (_isExclusive != that._isExclusive) + /* if (_isExclusive != that._isExclusive) { return false; } @@ -352,6 +356,7 @@ public abstract class AMQDestination implements Destination, Referenceable { return false; } + */ return true; } @@ -365,8 +370,8 @@ public abstract class AMQDestination implements Destination, Referenceable { 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; } |