Commits any mutations that have been made in the transaction. Once Commit has been called, the lifespan of the transaction is complete. Errors could be thrown for various reasons. Notably, a StatusRuntimeException could be thrown if transactions that modify the same data are being run concurrent
()
| 202 | * user to decide if they wish to retry. In this case, the user should create a new transaction. |
| 203 | */ |
| 204 | public void commit() { |
| 205 | Exceptions.withExceptionUnwrapped( |
| 206 | () -> { |
| 207 | asyncTransaction.commit().join(); |
| 208 | }); |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * Cleans up the resources associated with an uncommitted transaction that contains mutations. It |