List of usage examples for com.amazonaws.services.sqs.model SetQueueAttributesRequest getQueueUrl
public String getQueueUrl()
The URL of the Amazon SQS queue whose attributes are set.
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()); } } }