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

Duplicate Batch Requests - RequestId #9

Open
amircs opened this issue Aug 15, 2016 · 0 comments
Open

Duplicate Batch Requests - RequestId #9

amircs opened this issue Aug 15, 2016 · 0 comments

Comments

@amircs
Copy link
Member

amircs commented Aug 15, 2016

To keep track of batch requests, and remove the possibility of duplications, Google Genomics added "requestId": string". The request id is not yet in the Java client. It will be in the next release of utils-java.

Here is the code:

Genomics.Annotations.BatchCreate aRequest = genomics.annotations()
.batchCreate(new BatchCreateAnnotationsRequest()
.setAnnotations(currAnnotations), Integer.toString(Objects.hash(currAnnotations)));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant