Enum Class MetricsCollector.TransactionClosureOutcome
java.lang.Object
java.lang.Enum<MetricsCollector.TransactionClosureOutcome>
com.pyranid.MetricsCollector.TransactionClosureOutcome
- All Implemented Interfaces:
Serializable, Comparable<MetricsCollector.TransactionClosureOutcome>, Constable
- Enclosing interface:
MetricsCollector
public static enum MetricsCollector.TransactionClosureOutcome
extends Enum<MetricsCollector.TransactionClosureOutcome>
Logical outcome for a closure-based transaction.
- Since:
- 4.2.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe transaction used a physical JDBC transaction and commit completed normally.The transaction failed before Pyranid could report a normal commit or rollback outcome.The transaction closure exited without ever acquiring a JDBC connection.The transaction used a physical JDBC transaction and rollback completed normally. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
COMMITTED
The transaction used a physical JDBC transaction and commit completed normally. -
ROLLED_BACK
The transaction used a physical JDBC transaction and rollback completed normally. -
NO_PHYSICAL_TX
The transaction closure exited without ever acquiring a JDBC connection. -
FAILED
The transaction failed before Pyranid could report a normal commit or rollback outcome.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-