10971098109911001101110211031104110511061107
exception(session, method, ExecutionErrorCode.NOT_FOUND, "No queue " + queueName + " found"); } else { //TODO queue.clearQueue(); } } }
103104105106107108109110111112113
{ //Perform ACLs virtualHost.getAccessManager().authorise(session, Permission.PURGE, body, queue); long purged = queue.clearQueue(channel.getStoreContext()); if(!body.getNowait()) {
11331134113511361137113811391140114111421143
} else { try { queue.clearQueue(); } catch (AMQException e) { exception(session, method, e, "Cannot purge queue '" + queueName); }
14791480148114821483148414851486148714881489
33933394339533963397339833993400340134023403
} else { try { long purged = queue.clearQueue(); if (!nowait) { sync(); MethodRegistry methodRegistry = _connection.getMethodRegistry(); AMQMethodBody responseBody = methodRegistry.createQueuePurgeOkBody(purged);
14801481148214831484148514861487148814891490
} else { try { queue.clearQueue(); } catch (AccessControlException e) { exception(session, method, ExecutionErrorCode.UNAUTHORIZED_ACCESS, e.getMessage()); }