diff options
author | Keith Wall <kwall@apache.org> | 2011-11-09 08:58:59 +0000 |
---|---|---|
committer | Keith Wall <kwall@apache.org> | 2011-11-09 08:58:59 +0000 |
commit | bff95731244e04ca24bd743a885b194188f43f34 (patch) | |
tree | 83439003edd6e704dec831a1bfebd173fc33d9ef /java/client/src/main/java/org/apache/qpid/client/AMQConnection.java | |
parent | d597adc8a7b8c93f5f88754730cf64b3993c5d26 (diff) | |
download | qpid-python-bff95731244e04ca24bd743a885b194188f43f34.tar.gz |
QPID-3518: Introduce client side ability to detect server side support.
Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1199662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src/main/java/org/apache/qpid/client/AMQConnection.java')
-rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/AMQConnection.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java b/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java index 941534c7ff..ad7885f195 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java @@ -1402,6 +1402,19 @@ public class AMQConnection extends Closeable implements Connection, QueueConnect return null; } } + + /** + * Tests whether the Broker has advertised support for the named feature. + * + * @param featureName + * + * @return true if the feature is supported, or false otherwise. + */ + boolean isSupportedServerFeature(final String featureName) + { + return _delegate.isSupportedServerFeature(featureName); + } + public boolean isFailingOver() { return (_protocolHandler.getFailoverLatch() != null); |