Class DefaultConnectionStatus.SuppliedConnection

java.lang.Object
io.micronaut.data.connection.support.DefaultConnectionStatus.SuppliedConnection
Enclosing class:
DefaultConnectionStatus<C>

public static final class DefaultConnectionStatus.SuppliedConnection extends Object
The state of a connection supplied by the caller, whose owner may control its transaction.
Since:
5.3.0
Author:
Denis Stepanov
  • Constructor Details

    • SuppliedConnection

      public SuppliedConnection(boolean ownerControlsTransaction)
      Parameters:
      ownerControlsTransaction - Whether the owner of the connection controls its transaction
  • Method Details

    • isOwnerControlsTransaction

      public boolean isOwnerControlsTransaction()
      Returns:
      Whether the owner of the connection controls its transaction, which transactions join
    • setRollbackOnly

      public void setRollbackOnly()
      Marks that work joined to the owner's transaction was rolled back, so the owner must roll back.
    • isRollbackOnly

      public boolean isRollbackOnly()
      Returns:
      Whether work joined to the owner's transaction was rolled back