public enum CdbSubscriptionFlagType extends Enum<CdbSubscriptionFlagType>
Enum Constant and Description |
---|
CDB_SUB_FLAG_HA_IS_SLAVE
This bit is set when the system is in HA slave mode.
|
CDB_SUB_FLAG_HA_SYNC
This bit is set when the cause of the subscription notification is
initial synchronization of a HA slave from CDB on the master.
|
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_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.
|
CDB_SUB_FLAG_TRIGGER
This bit is set when the cause of the subscription notification is
that someone called
Cdb.triggerSubscriptions(int[]) . |
Modifier and Type | Method and Description |
---|---|
static EnumSet<CdbSubscriptionFlagType> |
enumSetOf(int i) |
int |
getValue() |
static CdbSubscriptionFlagType |
valueOf(int i) |
static CdbSubscriptionFlagType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CdbSubscriptionFlagType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CdbSubscriptionFlagType CDB_SUB_FLAG_HA_IS_SLAVE
public static final CdbSubscriptionFlagType CDB_SUB_FLAG_HA_SYNC
public static final CdbSubscriptionFlagType CDB_SUB_FLAG_IS_LAST
public static final CdbSubscriptionFlagType CDB_SUB_FLAG_REVERT
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).public static final CdbSubscriptionFlagType CDB_SUB_FLAG_TRIGGER
Cdb.triggerSubscriptions(int[])
.public static EnumSet<CdbSubscriptionFlagType> enumSetOf(int i)
public int getValue()
public static CdbSubscriptionFlagType valueOf(int i)
public static CdbSubscriptionFlagType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static CdbSubscriptionFlagType[] values()
for (CdbSubscriptionFlagType c : CdbSubscriptionFlagType.values()) System.out.println(c);