/** * Simplified method form for invoking the DeleteTopic operation. * * @see #deleteTopicAsync(DeleteTopicRequest) */ @Override public java.util.concurrent.Future<DeleteTopicResult> deleteTopicAsync(String topicArn) { return deleteTopicAsync(new DeleteTopicRequest().withTopicArn(topicArn)); }
public void shutdown() { try { sqs.deleteQueue(new DeleteQueueRequest(queueUrl)); } catch (Exception e) { log.warn("Unable to delete queue: " + queueUrl, e); } try { sns.deleteTopic(new DeleteTopicRequest(topicArn)); } catch (Exception e) { log.warn("Unable to delete topic: " + topicArn, e); } }
/** * Simplified method form for invoking the DeleteTopic operation. * * @see #deleteTopicAsync(DeleteTopicRequest) */ @Override public java.util.concurrent.Future<DeleteTopicResult> deleteTopicAsync(String topicArn) { return deleteTopicAsync(new DeleteTopicRequest().withTopicArn(topicArn)); }
/** * Simplified method form for invoking the DeleteTopic operation with an AsyncHandler. * * @see #deleteTopicAsync(DeleteTopicRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DeleteTopicResult> deleteTopicAsync(String topicArn, com.amazonaws.handlers.AsyncHandler<DeleteTopicRequest, DeleteTopicResult> asyncHandler) { return deleteTopicAsync(new DeleteTopicRequest().withTopicArn(topicArn), asyncHandler); }
/** * Simplified method form for invoking the DeleteTopic operation with an AsyncHandler. * * @see #deleteTopicAsync(DeleteTopicRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DeleteTopicResult> deleteTopicAsync(String topicArn, com.amazonaws.handlers.AsyncHandler<DeleteTopicRequest, DeleteTopicResult> asyncHandler) { return deleteTopicAsync(new DeleteTopicRequest().withTopicArn(topicArn), asyncHandler); }
@Override public DeleteTopicResult deleteTopic(String topicArn) { return deleteTopic(new DeleteTopicRequest().withTopicArn(topicArn)); }
@Override public DeleteTopicResult deleteTopic(String topicArn) { return deleteTopic(new DeleteTopicRequest().withTopicArn(topicArn)); }
/** * <p> * Deletes a topic and all its subscriptions. Deleting a topic might prevent * some messages previously sent to the topic from being delivered to * subscribers. This action is idempotent, so deleting a topic that does not * exist does not result in an error. * </p> * * @param topicArn <p> * The ARN of the topic you want to delete. * </p> * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @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 Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ public void deleteTopic(String topicArn) throws AmazonServiceException, AmazonClientException { DeleteTopicRequest deleteTopicRequest = new DeleteTopicRequest(); deleteTopicRequest.setTopicArn(topicArn); deleteTopic(deleteTopicRequest); }
@Override public void delete(ResultCapture<Void> extractor) { DeleteTopicRequest request = new DeleteTopicRequest(); delete(request, extractor); }
@Override public void delete(ResultCapture<Void> extractor) { DeleteTopicRequest request = new DeleteTopicRequest(); delete(request, extractor); }
public void shutdown() { try { sqs.deleteQueue(new DeleteQueueRequest(queueUrl)); } catch (Exception e) { log.warn("Unable to delete queue: " + queueUrl, e); } try { sns.deleteTopic(new DeleteTopicRequest(topicArn)); } catch (Exception e) { log.warn("Unable to delete topic: " + topicArn, e); } }
/** * <p> * Deletes a topic and all its subscriptions. Deleting a topic might prevent * some messages previously sent to the topic from being delivered to * subscribers. This action is idempotent, so deleting a topic that does not * exist does not result in an error. * </p> * * @param topicArn <p> * The ARN of the topic you want to delete. * </p> * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @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 Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ public void deleteTopic(String topicArn) throws AmazonServiceException, AmazonClientException { DeleteTopicRequest deleteTopicRequest = new DeleteTopicRequest(); deleteTopicRequest.setTopicArn(topicArn); deleteTopic(deleteTopicRequest); }
@Override public void deleteTopic(NevadoTopic topic) throws JMSException { try { _amazonSNS.deleteTopic(new DeleteTopicRequest().withTopicArn(getTopicARN(topic))); } catch (AmazonClientException e) { throw handleAWSException("Unable to delete message topic '" + topic, e); } }
private void cleanUp(QueueConfig config) { snsClient.unsubscribe(new UnsubscribeRequest(config.snsSubscriptionARN)); snsClient.deleteTopic(new DeleteTopicRequest(config.snsTopicARN)); sqsClient.deleteQueue(new DeleteQueueRequest(config.sqsQueueURL)); }
/** * 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)); }
DeleteTopicRequest deleteTopicRequest = new DeleteTopicRequest(arn); sns.deleteTopic(deleteTopicRequest); logger.debug("event=delete_topic topic_arn="+arn+" user_id= " + userId); DeleteTopicRequest deleteTopicRequest = new DeleteTopicRequest(t.getTopicArn()); sns.deleteTopic(deleteTopicRequest); logger.debug("event=delete_topic topic_arn=" + (t != null ? t.getTopicArn() : "null") + " user_id= " + userId);