-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waiters #24
Comments
This is what I'm doing in Scala using the async clients. I imagine you could do something similar in java.
|
This was a direct copy of the 1.11.x waiters, and we intend to update them for 2.x: #24
This was a direct copy of the 1.11.x waiters, and we intend to update them for 2.x: #24
Feature Request from v1: aws/aws-sdk-java#815 |
Is this ever going to be implemented? |
Yes. Unfortunately, we cannot provide a date. |
Hey all, we have released waiters in Below is the sample code of how to use it:
DynamoDbClient dynamo = DynamoDbClient.create();
DynamoDbWaiter waiter = dynamo.waiter();
WaiterResponse<DescribeTableResponse> waiterResponse =
waiter.waitUntilTableExists(r -> r.tableName("myTable"));
// print out the matched response with a tableStatus of ACTIVE
waiterResponse.matched().response().ifPresent(System.out::println);
DynamoDbAsyncClient asyncDynamo = DynamoDbAsyncClient.create();
DynamoDbAsyncWaiter asyncWaiter = asyncDynamo.waiter();
CompletableFuture<WaiterResponse<DescribeTableResponse>> waiterResponse =
asyncWaiter.waitUntilTableNotExists(r -> r.tableName("myTable"));
waiterResponse.whenComplete((r, t) -> {
if (t == null) {
// print out the matched ResourceNotFoundException
r.matched().exception().ifPresent(System.out::println);
}
}).join(); To learn more, check out our blog post and developer guide: https://aws.amazon.com/blogs/developer/using-waiters-in-the-aws-sdk-for-java-2-x/ Let us know if you have any feedback! 😃 |
all works well, many thanks |
Review the inherited state of V1 waiters and determine which changes are necessary for V2.
(Feel free to comment on this issue with desired changes).
The text was updated successfully, but these errors were encountered: