The AWS SDK for Java 2.x is a major rewrite of the 1.x code base built on top of Java 8+. It includes many updates, such as improved consistency, ease of use, and strongly enforced immutability. This section describes the major features that are new in version 2.x, and provides guidance on how to migrate your code to version 2.x from 1.x.
Whatâs new in version 2You can configure your own HTTP clients. See HTTP transport configuration.
Async clients feature non-blocking I/O support and return CompletableFuture
objects. See Asynchronous programming.
Operations that return multiple pages have autopaginated responses. This way, you can focus your code on what to do with the response, without the need to check for and get subsequent pages. See Pagination.
SDK start time performance for AWS Lambda functions is improved. See SDK start time performance improvements.
Version 2.x supports a new shorthand method for creating requests.
dynamoDbClient.putItem(request -> request.tableName(TABLE))
For more details about the new features and to see specific code examples, refer to the other sections of this guide.
Amazon Translate
How to migrate
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4