Enum Class NoTransactionManager

java.lang.Object
java.lang.Enum<NoTransactionManager>
org.axonframework.messaging.core.unitofwork.transaction.NoTransactionManager
All Implemented Interfaces:
Serializable, Comparable<NoTransactionManager>, Constable, TransactionManager

public enum NoTransactionManager extends Enum<NoTransactionManager> implements TransactionManager
A TransactionManager implementation that does nothing.

It's a placeholder implementation for the cases where no special transaction management is required.

Since:
2.0.0
Author:
Allard Buijze
  • Enum Constant Details

  • Method Details

    • values

      public static NoTransactionManager[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NoTransactionManager valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • instance

      public static TransactionManager instance()
      Returns the singleton instance of this TransactionManager.
      Returns:
      the singleton instance of this TransactionManager
    • startTransaction

      public Transaction startTransaction()
      Description copied from interface: TransactionManager
      Starts a transaction.

      The return value is the started transaction that can be committed or rolled back.

      Specified by:
      startTransaction in interface TransactionManager
      Returns:
      the object representing the transaction