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 and
fails with TransactionRollbackException when the transaction rolls back. |
void |
completion(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Like
completion() but with a callback |
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 completedvoid completion(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
completion()
but with a callbackio.vertx.core.Future<Void> completion()
Future
that
succeeds when the transaction commits and
fails with TransactionRollbackException
when the transaction rolls back.Copyright © 2021 Eclipse. All rights reserved.