public interface Transaction
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.Future<Void> |
commit()
Commit the current transaction.
|
void |
commit(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Like
commit() with an handler to be notified when the transaction commit has completed |
io.vertx.core.Future<Void> |
completion()
Return the transaction completion
Future that
succeeds when the transaction commits
fails with TransactionRollbackException when the transaction rollbacks
|
io.vertx.core.Future<Void> |
rollback()
Rollback the transaction and release the associated resources.
|
void |
rollback(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Like
rollback() with an handler to be notified when the transaction rollback has completed |
io.vertx.core.Future<Void> commit()
void commit(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
commit() with an handler to be notified when the transaction commit has completedio.vertx.core.Future<Void> rollback()
void rollback(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
rollback() with an handler to be notified when the transaction rollback has completedio.vertx.core.Future<Void> completion()
Future that
TransactionRollbackException when the transaction rollbacksCopyright © 2020 Eclipse. All rights reserved.