Enum Class的使用
org.apache.pulsar.client.api.SubscriptionType
使用SubscriptionType的程序包
-
org.apache.pulsar.client.api中SubscriptionType的使用
修饰符和类型方法说明static SubscriptionTypeReturns the enum constant of this class with the specified name.static SubscriptionType[]SubscriptionType.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明ConsumerBuilder.subscriptionType(SubscriptionType subscriptionType) Select the subscription type to be used when subscribing to a topic.