Enum NoSQLSubscriptionConfig.StreamDeliveryMode

java.lang.Object
java.lang.Enum<NoSQLSubscriptionConfig.StreamDeliveryMode>
oracle.kv.pubsub.NoSQLSubscriptionConfig.StreamDeliveryMode
All Implemented Interfaces:
Serializable, Comparable<NoSQLSubscriptionConfig.StreamDeliveryMode>
Enclosing class:
NoSQLSubscriptionConfig

public static enum NoSQLSubscriptionConfig.StreamDeliveryMode extends Enum<NoSQLSubscriptionConfig.StreamDeliveryMode>
Delivery mode of subscribe tables
  • Enum Constant Details

    • SINGLE_WRITE_EVENT

      public static final NoSQLSubscriptionConfig.StreamDeliveryMode SINGLE_WRITE_EVENT
      When a table is subscribed and configured with this delivery mode, every single write to the subscribed table will be delivered in a stream event StreamOperation.PutEvent or StreamOperation.DeleteEvent. This is the default delivery mode and does not require users to explicitly set it.
    • GROUP_ALL_IN_TRANSACTION

      public static final NoSQLSubscriptionConfig.StreamDeliveryMode GROUP_ALL_IN_TRANSACTION
      When a table is subscribed and configured with this delivery mode, all writes events to the table and its child tables if any, including single key writes, will be grouped in their respective transactions of the write events. All writes in a transaction will be delivered as a single stream event StreamOperation.TransactionEvent. For a single key write, the group size will be 1.

      The table configured with this delivery mode must be a subscribed table in the subscription, and must be a top table, otherwise the subscription would fail with SubscriptionFailureException.

  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NoSQLSubscriptionConfig.StreamDeliveryMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null