Enum Class AQDequeueOptions.DequeueMode

java.lang.Object
java.lang.Enum<AQDequeueOptions.DequeueMode>
oracle.jdbc.aq.AQDequeueOptions.DequeueMode
All Implemented Interfaces:
Serializable, Comparable<AQDequeueOptions.DequeueMode>, Constable
Enclosing class:
AQDequeueOptions

public static enum AQDequeueOptions.DequeueMode extends Enum<AQDequeueOptions.DequeueMode>
  • Enum Constant Details

    • BROWSE

      public static final AQDequeueOptions.DequeueMode BROWSE
      Read the message without acquiring any lock on the message. This is equivalent to a SELECT statement.
    • LOCKED

      public static final AQDequeueOptions.DequeueMode LOCKED
      Read and obtain a write lock on the message. The lock lasts for the duration of the transaction. This is equivalent to a SELECT FOR UPDATE statement.
    • REMOVE

      public static final AQDequeueOptions.DequeueMode REMOVE
      Read the message and update or delete it. This is the default. Note that the message can be retained in the queue table based on the retention properties.
    • REMOVE_NODATA

      public static final AQDequeueOptions.DequeueMode REMOVE_NODATA
      Confirm receipt of the message, but do not deliver the actual message content.
  • Method Details

    • values

      public static AQDequeueOptions.DequeueMode[] 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 AQDequeueOptions.DequeueMode 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
    • getCode

      public final int getCode()
      Implementation detail (for internal use only).