diff options
| author | Robert Gemmell <robbie@apache.org> | 2012-05-29 11:37:11 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2012-05-29 11:37:11 +0000 |
| commit | 5e91868e14cfccc267e77378ef6d4139286e33fa (patch) | |
| tree | 5209790f7b72a51266400d3806c065f9c125fa2a /java/common | |
| parent | 78355164a09e6dfee219051c1f50d4d26966ce47 (diff) | |
| download | qpid-python-5e91868e14cfccc267e77378ef6d4139286e33fa.tar.gz | |
QPID-3986: Improved tests and resolved some potential thread-safety issues
Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com>
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343675 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common')
| -rw-r--r-- | java/common/src/main/java/org/apache/qpid/transport/Session.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/transport/Session.java b/java/common/src/main/java/org/apache/qpid/transport/Session.java index 06b606f2d3..9a9e131adc 100644 --- a/java/common/src/main/java/org/apache/qpid/transport/Session.java +++ b/java/common/src/main/java/org/apache/qpid/transport/Session.java @@ -1195,4 +1195,12 @@ public class Session extends SessionInvoker } } } + + /** + * An auxiliary method for test purposes only + */ + public boolean isFlowBlocked() + { + return isFlowControlled() && credit.availablePermits() == 0; + } } |
