Package com.tailf.cdb

Enum Class CdbSubscriptionFlagType

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

public enum CdbSubscriptionFlagType extends Enum<CdbSubscriptionFlagType>
Distinguish the different types of subscription notifications
  • Enum Constant Details

    • CDB_SUB_FLAG_IS_LAST

      public static final CdbSubscriptionFlagType CDB_SUB_FLAG_IS_LAST
      This bit is set when this notification is the last of its type for this subscription socket.
    • CDB_SUB_FLAG_TRIGGER

      public static final CdbSubscriptionFlagType CDB_SUB_FLAG_TRIGGER
      This bit is set when the cause of the subscription notification is that someone called Cdb.triggerSubscriptions(int[]).
    • CDB_SUB_FLAG_REVERT

      public static final CdbSubscriptionFlagType CDB_SUB_FLAG_REVERT
      If a confirming commit is aborted it will look to the CDB subscribe as if a transaction happened that is the reverse of what the original transaction was. This bit will be set when such a transaction is the cause of the notification. Note that for a two-phase subscriber both a prepare and a commit notification is delivered. However it is not possible to reply by calling CdbSubscription.abortTransaction(CdbExtendedException) for the prepare notification in this case, instead the subscriber will have to take appropriate backup action if it needs to abort (for example: raise an alarm, restart, or even reboot the system).
    • CDB_SUB_FLAG_HA_SYNC

      public static final CdbSubscriptionFlagType CDB_SUB_FLAG_HA_SYNC
      This bit is set when the cause of the subscription notification is initial synchronization of a HA secondary from CDB on the primary.
    • CDB_SUB_FLAG_HA_IS_SECONDARY

      public static final CdbSubscriptionFlagType CDB_SUB_FLAG_HA_IS_SECONDARY
      This bit is set when the system is in HA secondary mode.
  • Method Details

    • values

      public static CdbSubscriptionFlagType[] 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 CdbSubscriptionFlagType 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 CdbSubscriptionFlagType 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
    • enumSetOf

      public static EnumSet<CdbSubscriptionFlagType> enumSetOf(int i)