awscala.sqs.Queue.scala Maven / Gradle / Ivy
The newest version!
package awscala.sqs
case class Queue(url: String) {
def messages()(implicit sqs: SQS): Seq[Message] = sqs.receiveMessage(this)
def add(messages: String*)(implicit sqs: SQS) = sqs.sendMessages(this, messages)
def addAll(messages: Seq[String])(implicit sqs: SQS) = sqs.sendMessages(this, messages)
def remove(messages: Message*)(implicit sqs: SQS) = sqs.deleteMessages(messages)
def removeAll(messages: Seq[Message])(implicit sqs: SQS) = sqs.deleteMessages(messages)
def destroy()(implicit sqs: SQS) = sqs.deleteQueue(this)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy