Package io.micronaut.transaction


@NullMarked package io.micronaut.transaction
Micronaut transaction management API.

A transaction is started, joined, suspended, committed or rolled back by a transaction manager according to a TransactionDefinition, which describes its propagation, isolation level, timeout and read-only flag. Code usually demarcates transactions declaratively with @Transactional, or programmatically with TransactionOperations.execute(TransactionDefinition, TransactionCallback). The state of a running transaction is exposed as a TransactionStatus, which also accepts TransactionSynchronization callbacks for its commit and completion.

Parts of this API are derived from the Spring Framework's transaction abstraction (Apache License 2.0).