THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
public interface Transaction { /** * Synchronously commits a transaction. * * @throws TransactionException If a transaction can't be committed. */ void commit() throws TransactionException; /** * Asynchronously commits a transaction. * * @return The future. */ CompletableFuture<Void> commitAsync(); /** * Synchronously rolls back a transaction. * * @throws TransactionException If a transaction can't be rolled back. */ void rollback() throws TransactionException; /** * Asynchronously rolls back a transaction. * * @return The future. */ CompletableFuture<Void> rollbackAsync(); } |
...