You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* It creates a subscription with default configuration.
101
+
*
102
+
* - type: Exclusive
103
+
* - mode: Durable
104
+
*/
105
+
defbuild(
106
+
implicit@implicitNotFound(
107
+
"Subscription.Name is mandatory. By default Type=Exclusive and Mode=Durable."
108
+
) ev: I=:=Info.Mandatory
109
+
):Subscription=
110
+
newSubscription {
111
+
valname= _name
112
+
val`type`= _type
113
+
valmode= _mode
114
+
}
115
+
85
116
}
86
117
87
-
/**
88
-
* It creates a subscription with default configuration.
89
-
*
90
-
* - type: Exclusive
91
-
* - mode: Durable
92
-
*/
93
-
defapply(name: Name):Subscription=
94
-
// Same as Java's defaults: https://github.com/apache/pulsar/blob/master/pulsar-client/src/main/java/org/apache/pulsar/client/impl/conf/ConsumerConfigurationData.java#L62
0 commit comments