Package oracle.jdbc

Enum Class OracleConnection.TransactionPriority

java.lang.Object
java.lang.Enum<OracleConnection.TransactionPriority>
oracle.jdbc.OracleConnection.TransactionPriority
All Implemented Interfaces:
Serializable, Comparable<OracleConnection.TransactionPriority>, Constable
Enclosing interface:
OracleConnection

public static enum OracleConnection.TransactionPriority extends Enum<OracleConnection.TransactionPriority>

This enum is used to specify a priority (HIGH, MEDIUM or LOW) to all transactions in a particular connection.

The Transaction Priority feature automatically rolls back low-priority transactions that are preventing higher priority transactions from obtaining row locks.

Since:
23.26.3
See Also:
  • Enum Constant Details

    • LOW

      public static final OracleConnection.TransactionPriority LOW

      Use LOW to mark a transaction that has low priority. Such a low priority transaction will be rolled back if it's holding a lock that is required by a higher priority transaction that has been waiting longer than its target wait time (see PRIORITY_TXNS_HIGH_WAIT_TARGET and PRIORITY_TXNS_MEDIUM_WAIT_TARGET database parameters).

    • MEDIUM

      public static final OracleConnection.TransactionPriority MEDIUM

      Transaction Priority will roll back a MEDIUM priority transaction if it is holding a row lock required by a HIGH priority transaction, and the HIGH priority transaction has been waiting for the row lock longer than the time specified by the PRIORITY_TXNS_HIGH_WAIT_TARGET parameter in the database.

    • HIGH

      public static final OracleConnection.TransactionPriority HIGH

      HIGH Transaction Priority never rolls back a HIGH priority transaction in order to release a row lock for another transaction. This is the default.

  • Method Details

    • values

      public static OracleConnection.TransactionPriority[] 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 OracleConnection.TransactionPriority 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