Package oracle.kv.pubsub
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 Summary
Enum ConstantsEnum ConstantDescriptionWhen 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.When a table is subscribed and configured with this delivery mode, every single write to the subscribed table will be delivered in a stream eventStreamOperation.PutEvent
orStreamOperation.DeleteEvent
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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 eventStreamOperation.PutEvent
orStreamOperation.DeleteEvent
. This is the default delivery mode and does not require users to explicitly set it. -
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 eventStreamOperation.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
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 nameNullPointerException
- if the argument is null
-