Package com.tailf.cdb
Enum Class CdbSubscriptionSyncType
- All Implemented Interfaces:
Serializable
,Comparable<CdbSubscriptionSyncType>
,Constable
Subscription Synchronization type used in sync() method
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis should be used when a subscription notification for operational data has been read.This means that application has acted on the subscription notification and CDB can continue to deliver further notifications.This means that we are done.This means that CDB should not send any further notifications to any subscribers - including ourselves - related to the currently executing transaction. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static CdbSubscriptionSyncType
Returns the enum constant of this class with the specified name.static CdbSubscriptionSyncType[]
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
-
DONE_PRIORITY
This means that application has acted on the subscription notification and CDB can continue to deliver further notifications. -
DONE_SOCKET
This means that we are done. But regardless of priority, CDB shall not send any further notifications to us on our socket that are related to the currently executing transaction. -
DONE_TRANSACTION
This means that CDB should not send any further notifications to any subscribers - including ourselves - related to the currently executing transaction. Subscription sync type used in sync() method. -
DONE_OPERATIONAL
This should be used when a subscription notification for operational data has been read. It is the only type that should be used in this case, since the operational data does not have transactions and the notifications do not have priorities.
-
-
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()
-