Example usage for com.amazonaws.services.sqs.model SetQueueAttributesRequest getQueueUrl

List of usage examples for com.amazonaws.services.sqs.model SetQueueAttributesRequest getQueueUrl

Introduction

In this page you can find the example usage for com.amazonaws.services.sqs.model SetQueueAttributesRequest getQueueUrl.

Prototype


public String getQueueUrl() 

Source Link

Document

The URL of the Amazon SQS queue whose attributes are set.

Usage

From source file:org.apache.camel.component.aws.sqs.AmazonSQSClientMock.java

License:Apache License

@Override
public void setQueueAttributes(SetQueueAttributesRequest setQueueAttributesRequest)
        throws AmazonServiceException, AmazonClientException {
    synchronized (queueAttributes) {
        if (!queueAttributes.containsKey(setQueueAttributesRequest.getQueueUrl())) {
            queueAttributes.put(setQueueAttributesRequest.getQueueUrl(), new HashMap<String, String>());
        }/*  w w w . j  a  va 2 s  . co m*/
        for (final Map.Entry<String, String> entry : setQueueAttributesRequest.getAttributes().entrySet()) {
            queueAttributes.get(setQueueAttributesRequest.getQueueUrl()).put(entry.getKey(), entry.getValue());
        }
    }
}