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 | 5a888989bd28402e3271b05bcc32a7410f8d17a2 (patch) | |
| tree | 469fe7c0a7a484cf2663a70d289e342497303f0b /qpid/java/common | |
| parent | 739f8964cdb5baf786759fb900928206a404d3fa (diff) | |
| download | qpid-python-5a888989bd28402e3271b05bcc32a7410f8d17a2.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@1343675 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common')
| -rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java b/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java index 06b606f2d3..9a9e131adc 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java +++ b/qpid/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; + } } |
