10271028102910301031103210331034103510361037
{ try { if(exchange.hasBinding(method.getBindingKey(), queue)) { exchange.deleteBinding(method.getBindingKey(), queue); } } catch (AccessControlException e) { exception(session, method, ExecutionErrorCode.UNAUTHORIZED_ACCESS, e.getMessage());
111112113114115116117118119120121
} else { try { exch.deleteBinding(String.valueOf(routingKey), queue); } catch (AccessControlException e) { throw body.getConnectionException(AMQConstant.ACCESS_REFUSED, e.getMessage()); }
10141015101610171018101910201021102210231024
10881089109010911092109310941095109610971098
34663467346834693470347134723473347434753476
} else { try { exch.deleteBinding(String.valueOf(routingKey), queue); final AMQMethodBody responseBody = _connection.getMethodRegistry().createQueueUnbindOkBody(); sync(); _connection.writeFrame(responseBody.generateFrame(getChannelId())); }