public interface Transaction
Modifier and Type | Method and Description |
---|---|
Future<Void> |
commit()
Commit the current transaction.
|
void |
commit(Handler<AsyncResult<Void>> handler)
Like
commit() with an handler to be notified when the transaction commit has completed |
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(Handler<AsyncResult<Void>> handler)
Like
completion() but with a callback |
Future<Void> |
rollback()
Rollback the transaction and release the associated resources.
|
void |
rollback(Handler<AsyncResult<Void>> handler)
Like
rollback() with an handler to be notified when the transaction rollback has completed |
void commit(Handler<AsyncResult<Void>> handler)
commit()
with an handler to be notified when the transaction commit has completedvoid rollback(Handler<AsyncResult<Void>> handler)
rollback()
with an handler to be notified when the transaction rollback has completedvoid completion(Handler<AsyncResult<Void>> handler)
completion()
but with a callbackFuture<Void> completion()
Future
that
succeeds when the transaction commits and
fails with TransactionRollbackException
when the transaction rolls back.Copyright © 2023 Eclipse. All rights reserved.