Skip to content
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

Feature Request: Consider Consumer based List/Describe #1239

Closed
rdifalco opened this issue Jul 16, 2017 · 1 comment
Closed

Feature Request: Consider Consumer based List/Describe #1239

rdifalco opened this issue Jul 16, 2017 · 1 comment
Labels
feature-request A feature should be added or improved.

Comments

@rdifalco
Copy link

I can't count the amount of code I have that has to deal with the different ways the different services handle Paged results, isTruncated, getMarker == null, getNextToken, etc.

While it would be nice to standardize these I would prefer if you just did the while loops for me. For example, I would like every Describe and List action to have the following variant.

   ec2.describeInstancesForAll(DescribeInstancesRequest, Consumer<DescribeInstancesResult>);

This may be a v2 request, which is fine by me. But given that 99% of the time I iterate through all these List and Describe services calls, having an internal iteration variant for each that takes a consumer would be really friggin awesome.

@kiiadi kiiadi added the feature-request A feature should be added or improved. label Jul 17, 2017
@kiiadi
Copy link
Contributor

kiiadi commented Jul 17, 2017

We are looking at adding better pagination for our v2 version of the SDK. I've linked the related issue here and would prefer to track it in a single place - please feel free to 👍 the issue to help us prioritise it!

@kiiadi kiiadi closed this as completed Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants