com.amazonaws.services.sqs.model.DeleteQueueRequest Java Examples
The following examples show how to use
com.amazonaws.services.sqs.model.DeleteQueueRequest.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AmazonSQSVirtualQueuesClient.java From amazon-sqs-java-temporary-queues-client with Apache License 2.0 | 5 votes |
@Override public DeleteQueueResult deleteQueue(DeleteQueueRequest request) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Deleting Virtual Queue is %s and Queue Name is %s", (virtualQueues.size() - 1), request.getQueueUrl())); } return getVirtualQueue(request.getQueueUrl()) .map(virtualQueue -> virtualQueue.deleteQueue()) .orElseGet(() -> amazonSqsToBeExtended.deleteQueue(request)); }
Example #2
Source File: AmazonSQSIdleQueueDeletingClient.java From amazon-sqs-java-temporary-queues-client with Apache License 2.0 | 4 votes |
@Override public DeleteQueueResult deleteQueue(DeleteQueueRequest request) { DeleteQueueResult result = super.deleteQueue(request); queueDeleted(request.getQueueUrl()); return result; }
Example #3
Source File: AbstractAmazonSQSClientWrapper.java From amazon-sqs-java-temporary-queues-client with Apache License 2.0 | 4 votes |
@Override public DeleteQueueResult deleteQueue(DeleteQueueRequest request) { request.getRequestClientOptions().appendUserAgent(userAgent); return amazonSqsToBeExtended.deleteQueue(request); }
Example #4
Source File: MockSQS.java From amazon-sqs-java-temporary-queues-client with Apache License 2.0 | 4 votes |
@Override public DeleteQueueResult deleteQueue(DeleteQueueRequest request) { queues.remove(getQueue(request.getQueueUrl()).getQueueName()); return new DeleteQueueResult(); }
Example #5
Source File: AbstractAmazonSQSClientWrapperTest.java From amazon-sqs-java-temporary-queues-client with Apache License 2.0 | 4 votes |
@Test public void deleteQueue() { assertWrappedMethod(AmazonSQS::deleteQueue, new DeleteQueueRequest()); }
Example #6
Source File: AwsGlacierInventoryRetriever.java From core with GNU General Public License v3.0 | 4 votes |
/** * To be called when done with this object. Cleans up notifications for when * jobs complete. */ private void cleanUp() { snsClient.unsubscribe(new UnsubscribeRequest(snsSubscriptionARN)); snsClient.deleteTopic(new DeleteTopicRequest(snsTopicARN)); sqsClient.deleteQueue(new DeleteQueueRequest(sqsQueueURL)); }
Example #7
Source File: QueueImpl.java From aws-sdk-java-resources with Apache License 2.0 | 4 votes |
@Override public void delete(DeleteQueueRequest request) { delete(request, null); }
Example #8
Source File: QueueImpl.java From aws-sdk-java-resources with Apache License 2.0 | 4 votes |
@Override public void delete(DeleteQueueRequest request, ResultCapture<Void> extractor ) { resource.performAction("Delete", request, extractor); }
Example #9
Source File: QueueImpl.java From aws-sdk-java-resources with Apache License 2.0 | 4 votes |
@Override public void delete(ResultCapture<Void> extractor) { DeleteQueueRequest request = new DeleteQueueRequest(); delete(request, extractor); }
Example #10
Source File: BeanstalkConnector.java From cloudml with GNU Lesser General Public License v3.0 | 4 votes |
public void deleteQueue(String name){ DeleteQueueRequest request = new DeleteQueueRequest(name); sqsClient.deleteQueue(request); }
Example #11
Source File: AmazonSQSExtendedClientBase.java From amazon-sqs-java-extended-client-lib with Apache License 2.0 | 2 votes |
/** * <p> * Deletes the queue specified by the <b>queue URL</b> , regardless of * whether the queue is empty. If the specified queue does not exist, Amazon * SQS returns a successful response. * </p> * <p> * <b>IMPORTANT:</b> Use DeleteQueue with care; once you delete your queue, * any messages in the queue are no longer available. * </p> * <p> * When you delete a queue, the deletion process takes up to 60 seconds. * Requests you send involving that queue during the 60 seconds might * succeed. For example, a SendMessage request might succeed, but after the * 60 seconds, the queue and that message you sent no longer exist. Also, * when you delete a queue, you must wait at least 60 seconds before * creating a queue with the same name. * </p> * <p> * We reserve the right to delete queues that have had no activity for more * than 30 days. For more information, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSConcepts.html" * > How Amazon SQS Queues Work </a> in the <i>Amazon SQS Developer * Guide</i> . * </p> * * @param deleteQueueRequest * Container for the necessary parameters to execute the * DeleteQueue service method on AmazonSQS. * * * * @throws AmazonClientException * If any internal errors are encountered inside the client * while attempting to make the request or handle the response. * For example if a network connection is not available. * @throws AmazonServiceException * If an error response is returned by AmazonSQS indicating * either a problem with the data in the request, or a server * side issue. */ public DeleteQueueResult deleteQueue(DeleteQueueRequest deleteQueueRequest) throws AmazonServiceException, AmazonClientException { return amazonSqsToBeExtended.deleteQueue(deleteQueueRequest); }
Example #12
Source File: Queue.java From aws-sdk-java-resources with Apache License 2.0 | 2 votes |
/** * Performs the <code>Delete</code> action. * * <p> * The following request parameters will be populated from the data of this * <code>Queue</code> resource, and any conflicting parameter value set in * the request will be overridden: * <ul> * <li> * <b><code>QueueUrl</code></b> * - mapped from the <code>Url</code> identifier. * </li> * </ul> * * <p> * * @see DeleteQueueRequest */ void delete(DeleteQueueRequest request);
Example #13
Source File: Queue.java From aws-sdk-java-resources with Apache License 2.0 | 2 votes |
/** * Performs the <code>Delete</code> action and use a ResultCapture to * retrieve the low-level client response. * * <p> * The following request parameters will be populated from the data of this * <code>Queue</code> resource, and any conflicting parameter value set in * the request will be overridden: * <ul> * <li> * <b><code>QueueUrl</code></b> * - mapped from the <code>Url</code> identifier. * </li> * </ul> * * <p> * * @see DeleteQueueRequest */ void delete(DeleteQueueRequest request, ResultCapture<Void> extractor);