Package com.tailf.cdb

Enum Class CdbDBType

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

public enum CdbDBType extends Enum<CdbDBType>
Database types specified when setting up CDB sessions
  • Enum Constant Details

    • CDB_RUNNING

      public static final CdbDBType CDB_RUNNING
      create a session towards the running db
    • CDB_STARTUP

      public static final CdbDBType CDB_STARTUP
      create a session towards the startup db
    • CDB_OPERATIONAL

      public static final CdbDBType CDB_OPERATIONAL
      create a read/write session towards the operational db
    • CDB_PRE_COMMIT_RUNNING

      public static final CdbDBType CDB_PRE_COMMIT_RUNNING
      create a read session toward the running database as it was before the current transaction was committed. This is only possible between a notification read by CdbSubscription.read() and the final call of CdbSubscription.sync()
  • Method Details

    • values

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