All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elasticmq.rest.sqs.DeleteQueueDirectives.scala Maven / Gradle / Ivy

The newest version!
package org.elasticmq.rest.sqs

import Constants._
import org.elasticmq.actor.reply._
import scala.async.Async._
import org.elasticmq.msg.DeleteQueue
import org.elasticmq.rest.sqs.directives.ElasticMQDirectives

trait DeleteQueueDirectives { this: ElasticMQDirectives with QueueURLModule =>
  def deleteQueue(p: AnyParams) = {
    p.action("DeleteQueue") {
      queueActorAndNameFromRequest(p) { (queueActor, queueName) => // We need the queue actor just to check that the queue exists
        async {
          await(queueManagerActor ? DeleteQueue(queueName))

          respondWith {
            
              
                {EmptyRequestId}
              
            
          }
        }
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy