You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,22 @@ for communicating with Amazon Simple Queue Service. This project builds on top o
6
6
* You can download release builds through the [releases section of this](https://github.com/awslabs/amazon-sqs-java-messaging-lib) project.
7
7
* For more information on using the amazon-sqs-java-messaging-lib, see our getting started guide to SQS [here](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/jmsclient.html).
8
8
9
-
##Getting Started
9
+
##Getting Started
10
10
11
11
***Sign up for AWS** — Before you begin, you need an AWS account. For more information about creating an AWS account and retrieving your AWS credentials, see [AWS Account and Credentials](http://docs.aws.amazon.com/AWSSdkDocsJava/latest/DeveloperGuide/java-dg-setup.html) in the AWS SDK for Java Developer Guide.
12
-
***Sign up for Amazon SQS** — Go to the Amazon [SQS console](https://console.aws.amazon.com/sqs/home?region=us-east-1) to sign up for the service.
13
-
***Minimum requirements** — To use the sample application, you'll need Java 1.7+ and [Maven 3](http://maven.apache.org/). For more information about the requirements, see the [Getting Started](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/jmsclient.html) section of the Amazon SQS Developer Guide.
14
-
***Download** — Download the [latest preview release](https://github.com/awslabs/amazon-sqs-java-messaging-lib/releases) or pick it up from Maven:
12
+
***Minimum requirements** — To use the sample application, you'll need Java 7 (or later) and [Maven 3](http://maven.apache.org/). For more information about the requirements, see the [Getting Started](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/jmsclient.html) section of the Amazon SQS Developer Guide.
13
+
***Download** — Download the [latest release](https://github.com/awslabs/amazon-sqs-java-messaging-lib/releases) or pick it up from Maven:
thrownewJMSException("Amazon SQS client cannot be null");
80
93
}
81
94
this.amazonSQSClient = amazonSQSClient;
95
+
this.credentialsProvider = credentialsProvider;
82
96
}
83
97
84
98
/**
@@ -92,13 +106,15 @@ public AmazonSQS getAmazonSQSClient() {
92
106
}
93
107
94
108
/**
95
-
* Sets SQS endpoint and wraps IllegalArgumentException.
109
+
* Sets SQS endpoint and wraps IllegalArgumentException.
110
+
* Deprecated. Instead of manipulating settings of existing AmazonSQS client, provide correct configuration when creating it through SQSConnectionFactory constructors.
96
111
*
97
112
* @param endpoint
98
113
* The endpoint (ex: "sqs.us-east-1.amazonaws.com") of the region
99
114
* specific AWS endpoint this client will communicate with.
* Sets SQS region and wraps <code>IllegalArgumentException</code>. This is the recommend
113
-
* way to set-up the SQS end-points.
128
+
* Sets SQS region and wraps <code>IllegalArgumentException</code>.
129
+
* Deprecated. Instead of manipulating settings of existing AmazonSQS client, provide correct configuration when creating it through SQSConnectionFactory constructors.
114
130
*
115
131
* @param region
116
132
* The region this client will communicate with. See
117
133
* {@link Region#getRegion(com.amazonaws.regions.Regions)} for
if (numberOfMessagesToPrefetch < SQSMessagingClientConstants.MIN_PREFETCH) {
31
+
thrownewIllegalArgumentException(String.format("Invalid prefetch size. Provided value '%1$s' cannot be smaller than '%2$s'", numberOfMessagesToPrefetch, SQSMessagingClientConstants.MIN_PREFETCH));
0 commit comments