Package com.tailf.cdb
Enum Class CdbSubscriptionFlagType
- All Implemented Interfaces:
Serializable
,Comparable<CdbSubscriptionFlagType>
,Constable
Distinguish the different types of subscription notifications
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis bit is set when the system is in HA secondary mode.This bit is set when the cause of the subscription notification is initial synchronization of a HA secondary from CDB on the primary.This bit is set when this notification is the last of its type for this subscription socket.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 is set when the cause of the subscription notification is that someone calledCdb.triggerSubscriptions(int[])
. -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<CdbSubscriptionFlagType>
enumSetOf
(int i) int
getValue()
static CdbSubscriptionFlagType
valueOf
(int i) Returns the enum constant of this class with the specified name.static CdbSubscriptionFlagType
Returns the enum constant of this class with the specified name.static CdbSubscriptionFlagType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
This bit is set when the cause of the subscription notification is that someone calledCdb.triggerSubscriptions(int[])
. -
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 callingCdbSubscription.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
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
This bit is set when the system is in HA secondary mode.
-
-
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
-
getValue
public int getValue() -
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:
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 nameNullPointerException
- if the argument is null
-
enumSetOf
-