summaryrefslogtreecommitdiff
path: root/java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java')
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java
index 11dcffc175..289cf2cc10 100644
--- a/java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java
@@ -121,13 +121,17 @@ public class ChannelAlertBody extends AMQMethodBodyImpl implements EncodableAMQD
return buf.toString();
}
- public static void process(final int channelId, final MarkableDataInput buffer, final MethodProcessor dispatcher)
+ public static void process(final MarkableDataInput buffer,
+ final ClientChannelMethodProcessor dispatcher)
throws IOException, AMQFrameDecodingException
{
int replyCode = buffer.readUnsignedShort();
AMQShortString replyText = buffer.readAMQShortString();
FieldTable details = EncodingUtils.readFieldTable(buffer);
- dispatcher.receiveChannelAlert(channelId, replyCode, replyText, details);
+ if(!dispatcher.ignoreAllButCloseOk())
+ {
+ dispatcher.receiveChannelAlert(replyCode, replyText, details);
+ }
}
}