Examples of GetQueueAttributesResult


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

              Arrays.asList("VisibilityTimeout", "MaximumMessageSize", "MessageRetentionPeriod", "DelaySeconds",
                  "ApproximateNumberOfMessages",
                  "ApproximateNumberOfMessagesNotVisible",
                  "ApproximateNumberOfMessagesDelayed",        
                  "ReceiveMessageWaitTimeSeconds", "NumberOfPartitions", "NumberOfShards", "IsCompressed"));
          GetQueueAttributesResult getQueueAttributesResult = sqs.getQueueAttributes(getQueueAttributesRequest);
          attributes = getQueueAttributesResult.getAttributes();
        } catch (Exception ex) {
          logger.error("event=get_queue_attributes url=" + queueUrls.get(i));
        }
      }
View Full Code Here

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

  }

  private void resolveQueueArn() {
    GetQueueAttributesRequest request = new GetQueueAttributesRequest(
        queueUrl);
    GetQueueAttributesResult result = sqsClient.getQueueAttributes(request
        .withAttributeNames(Collections.singletonList(QUEUE_ARN_KEY)));
    queueArn = result.getAttributes().get(QUEUE_ARN_KEY);
  }
View Full Code Here

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

    queueArn = result.getAttributes().get(QUEUE_ARN_KEY);
  }

  private void addPermissions() {
    if (permissions != null && permissions.isEmpty() == false) {
      GetQueueAttributesResult result = sqsClient
          .getQueueAttributes(new GetQueueAttributesRequest(queueUrl,
              Arrays.asList("Policy")));

      AwsUtil.addPermissions(result.getAttributes(), permissions,
          new AwsUtil.AddPermissionHandler() {

            @Override
            public void execute(Permission p) {
              sqsClient.addPermission(new AddPermissionRequest()
View Full Code Here

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

        queueName);
    String policyId = null;
    GetQueueAttributesRequest getAttrRequest = new GetQueueAttributesRequest(
        queueUrl);
    getAttrRequest.setAttributeNames(Collections.singletonList("Policy"));
    GetQueueAttributesResult result = sqsClient
        .getQueueAttributes(getAttrRequest);
    Map<String, String> attributes = result.getAttributes();
    String policyStr = attributes.get("Policy");
    log.debug("Policy:" + policyStr);
    if (policyStr != null) {
      try {
        JSONObject policyJSON = new JSONObject(policyStr);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.