Package com.tailf.cdb

Enum Class CdbSubscriptionSyncType

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

public enum CdbSubscriptionSyncType extends Enum<CdbSubscriptionSyncType>
Subscription Synchronization type used in sync() method
  • Enum Constant Details

    • DONE_PRIORITY

      public static final CdbSubscriptionSyncType DONE_PRIORITY
      This means that application has acted on the subscription notification and CDB can continue to deliver further notifications.
    • DONE_SOCKET

      public static final CdbSubscriptionSyncType 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

      public static final CdbSubscriptionSyncType 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

      public static final CdbSubscriptionSyncType 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

      public static CdbSubscriptionSyncType[] 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 CdbSubscriptionSyncType 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()