We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
http://code.google.com/appengine/docs/java/datastore/transactions.html#Uses_for_Transactions
In case of certain exceptions (ConcurrentModificationException, APIDeadlineExceeded, etc), should be able to retry.
e.g.
datastore.withTransaction { def e = datastore.get('User', 1234) e.lastLogin = new Date() e.save() }, 3
would retry the above transaction 3 times.
The text was updated successfully, but these errors were encountered:
In terms of signature, I'd go with something like:
datastore.withTransaction(retry: 3) { ... }
It feels a bit more natural to me.
Sorry, something went wrong.
No branches or pull requests
http://code.google.com/appengine/docs/java/datastore/transactions.html#Uses_for_Transactions
In case of certain exceptions (ConcurrentModificationException, APIDeadlineExceeded, etc), should be able to retry.
e.g.
would retry the above transaction 3 times.
The text was updated successfully, but these errors were encountered: