public void closeChannel(int channelId, int cause, String message) { final AMQChannel channel = getChannel(channelId); if (channel == null) { throw new IllegalArgumentException("Unknown channel id"); } closeChannel(channel, cause, message, true); }
ServerChannelMethodProcessor channelMethodProcessor = getChannel(channelId); if(channelMethodProcessor == null)
@Override protected void processFrame(final int channelId, final byte type, final long bodySize, final QpidByteBuffer in) throws AMQFrameDecodingException { long startTime = 0; try { if (LOGGER.isDebugEnabled()) { startTime = System.currentTimeMillis(); } AMQChannel channel = _connection.getChannel(channelId); if(channel != null) { _connection.channelRequiresSync(channel); } doProcessFrame(channelId, type, bodySize, in); } finally { if(LOGGER.isDebugEnabled()) { LOGGER.debug("Frame handled in {} ms.", (System.currentTimeMillis() - startTime)); } } }
final AMQChannel channel = _connection.getChannel(channelId);
"Virtualhost has not yet been set. ConnectionOpen has not been called.", channelId); else if(getChannel(channelId) != null || channelAwaitingClosure(channelId))