} else if (adminRequest instanceof ClearQueue) {
clearQueue(not.getReplyTo(),
not.getRequestMsgId(),
not.getReplyMsgId());
} else if (adminRequest instanceof GetNbMaxMsgRequest) {
replyToTopic(new GetNumberReply(getNbMaxMsg()),
not.getReplyTo(),
not.getRequestMsgId(),
not.getReplyMsgId());
} else if (adminRequest instanceof GetPendingMessages) {
// Cleaning of the possibly expired messages.
DMQManager dmqManager = cleanPendingMessage(System.currentTimeMillis());
// Sending the dead messages to the DMQ, if needed:
if (dmqManager != null) dmqManager.sendToDMQ();
replyToTopic(new GetNumberReply(getPendingMessageCount()),
not.getReplyTo(),
not.getRequestMsgId(),
not.getReplyMsgId());
} else if (adminRequest instanceof GetPendingRequests) {
// Cleaning of the possibly expired requests.
cleanWaitingRequest(System.currentTimeMillis());
replyToTopic(new GetNumberReply(getWaitingRequestCount()),
not.getReplyTo(),
not.getRequestMsgId(),
not.getReplyMsgId());
} else if (adminRequest instanceof GetDMQSettingsRequest) {
replyToTopic(new GetDMQSettingsReply((dmqId != null)?dmqId.toString():null, threshold),