Package com.tailf.cdb

Enum Class CdbNotificationType

Object
Enum<CdbNotificationType>
com.tailf.cdb.CdbNotificationType
All Implemented Interfaces:
Serializable, Comparable<CdbNotificationType>, Constable

public enum CdbNotificationType extends Enum<CdbNotificationType>
Subscription notification type retrieved from getLatestNotificationType() method
  • Enum Constant Details

    • SUB_PREPARE

      public static final CdbNotificationType SUB_PREPARE
      Notification on transaction in prepare state
    • SUB_COMMIT

      public static final CdbNotificationType SUB_COMMIT
      Notification on transaction in commit state
    • SUB_ABORT

      public static final CdbNotificationType SUB_ABORT
      Notification on aborted transaction
    • SUB_OPER

      public static final CdbNotificationType SUB_OPER
      Notification
  • Method Details

    • values

      public static CdbNotificationType[] 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 CdbNotificationType 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
    • getValue

      public int getValue()
    • valueOf

      public static CdbNotificationType valueOf(int i)
      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:
      i - 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