Hi Anthony,
There is currently no such feature in jOOQ, although the idea has been discussed before, and I really like it. The pending feature request is:
I'm not sure when this will ship, yet. There are a lot of "retryables" such as individual queries, query "groups" or batches, transactions, etc.
I think the retry function would be the most pragmatic approach here. You could create an API like:
// Retry this at most 3 times
retry(3, () -> {
db.deleteFrom(TABLE).where(TABLE.ID.eq(123)).execute();
});
Hope this helps,
Lukas