Package org.springframework.amqp.rabbit.core

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin.purgeQueue()


 
  @RequestMapping(value = "/purge", method = RequestMethod.GET)
  @ResponseBody
  public String purgeQueue() {
    RabbitAdmin admin = new RabbitAdmin(rabbitTemplate.getConnectionFactory());   
    admin.purgeQueue(QueueNames.WORK_QUEUE_NAME, true);
    admin.purgeQueue(QueueNames.RESULT_QUEUE_NAME, true);
    return QueueNames.WORK_QUEUE_NAME + "and " + QueueNames.RESULT_QUEUE_NAME + " queues were purged.";
       
  }
 
View Full Code Here


  @RequestMapping(value = "/purge", method = RequestMethod.GET)
  @ResponseBody
  public String purgeQueue() {
    RabbitAdmin admin = new RabbitAdmin(rabbitTemplate.getConnectionFactory());   
    admin.purgeQueue(QueueNames.WORK_QUEUE_NAME, true);
    admin.purgeQueue(QueueNames.RESULT_QUEUE_NAME, true);
    return QueueNames.WORK_QUEUE_NAME + "and " + QueueNames.RESULT_QUEUE_NAME + " queues were purged.";
       
  }
 
  @RequestMapping(value = "/queue", method = RequestMethod.GET)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.