Package com.amazonaws.services.sqs.model

Examples of com.amazonaws.services.sqs.model.DeleteQueueRequest


    return topicArn;
  }

  public void shutdown() {
    try {
      sqs.deleteQueue(new DeleteQueueRequest(queueUrl));
    } catch (Exception e) {
      log.warn("Unable to delete queue: " + queueUrl, e);
    }

    try {
View Full Code Here


    return topicArn;
  }
 
  public void shutdown() {
    try {
      sqs.deleteQueue(new DeleteQueueRequest(queueUrl));
    } catch (Exception e) {
      log.warn("Unable to delete queue: " + queueUrl, e);
    }
   
    try {
View Full Code Here

            String messageRecieptHandle = messages.get(0).getReceiptHandle();
            sqs.deleteMessage(new DeleteMessageRequest(myQueueUrl, messageRecieptHandle));

            // Delete a queue
            System.out.println("Deleting the test queue.\n");
            sqs.deleteQueue(new DeleteQueueRequest(myQueueUrl));
        } catch (AmazonServiceException ase) {
            System.out.println("Caught an AmazonServiceException, which means your request made it " +
                    "to Amazon SQS, but was rejected with an error response for some reason.");
            System.out.println("Error Message:    " + ase.getMessage());
            System.out.println("HTTP Status Code: " + ase.getStatusCode());
View Full Code Here

    }

    @Override
    public void deleteQueue(String queueUrl)
            throws AmazonServiceException, AmazonClientException {
         deleteQueue(new DeleteQueueRequest(queueUrl));
    }
View Full Code Here

    return topicArn;
  }

  public void shutdown() {
    try {
      sqs.deleteQueue(new DeleteQueueRequest(queueUrl));
    } catch (Exception e) {
      log.warn("Unable to delete queue: " + queueUrl, e);
    }

    try {
View Full Code Here

        return topicArn;
    }

    public void shutdown() {
        try {
            sqs.deleteQueue(new DeleteQueueRequest(queueUrl));
        } catch (Exception e) {
            log.warn("Unable to delete queue: " + queueUrl, e);
        }

        try {
View Full Code Here

    return topicArn;
  }

  public void shutdown() {
    try {
      sqs.deleteQueue(new DeleteQueueRequest(queueUrl));
    } catch (Exception e) {
      log.warn("Unable to delete queue: " + queueUrl, e);
    }

    try {
View Full Code Here

        return topicArn;
    }

    public void shutdown() {
        try {
            sqs.deleteQueue(new DeleteQueueRequest(queueUrl));
        } catch (Exception e) {
            log.warn("Unable to delete queue: " + queueUrl, e);
        }

        try {
View Full Code Here

  @After
  public void tearDown() {
    for (String key : queues.keySet()) {
      logger.info("deleting " + queues.get(key));
      if (key.endsWith("_USER1")) {
        cqs1.deleteQueue(new DeleteQueueRequest(queues.get(key)));
      } else if (key.endsWith("_USER2")) {
        cqs2.deleteQueue(new DeleteQueueRequest(queues.get(key)));
      } else {
        cqs3.deleteQueue(new DeleteQueueRequest(queues.get(key)));
      }
    }
    for (String key : topics.keySet()) {
      logger.info("deleting " + topics.get(key));
      if (key.endsWith("_USER1")) {
View Full Code Here

  }
 
  private void deleteAllQueues(AmazonSQSClient sqs) {
    ListQueuesResult listQueueaResult = sqs.listQueues();
    for (String queueUrl : listQueueaResult.getQueueUrls()) {
      sqs.deleteQueue(new DeleteQueueRequest(queueUrl));
    }
  }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.sqs.model.DeleteQueueRequest

Copyright © 2018 www.massapicom. 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.