From 53bb4e59304120275bab9caeebf9d55962a848ab Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Fri, 16 Feb 2007 11:00:46 +0000 Subject: QPID-372 Broker doesn't wait for ChannelClose-Ok. Updated AMQProtocolSession to have new methods to query and release a channel from the awaiting close-ok state. Once a channel has been signalled to be closed any further methods on that channel are ignored until a close-ok is sent. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@508366 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/server/queue/MockProtocolSession.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qpid/java/systests') diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MockProtocolSession.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MockProtocolSession.java index 0dd7744d1f..bab7954d11 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MockProtocolSession.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/MockProtocolSession.java @@ -94,6 +94,16 @@ public class MockProtocolSession implements AMQProtocolSession { } + public void closeChannelOk(int channelId) + { + + } + + public boolean channelAwaitingClosure(int channelId) + { + return false; + } + public void removeChannel(int channelId) { _channelMap.remove(channelId); -- cgit v1.2.1