I have an object that I use for temporary data storage using Objectify on App Engine.
When I save my entity, if it throws an ApiProxy.RequestTooLargeException I clear out some of the data and resave. I want to do this Asyncronously, but can't work out how to catch and handle async save errors.
Saving synchronously it works fine, something like this:
private void save() {
try {
ofy().save().entity(this).now();
} catch (ApiProxy.RequestTooLargeException e) {
clearOldData();
save();
}
}
How can I do a similar thing with an async save?