Enum Class的使用
org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy
程序包
说明
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Implementation of policies.
-
org.apache.pulsar.client.admin中SchemaCompatibilityStrategy的使用
修饰符和类型方法说明Namespaces.getSchemaCompatibilityStrategy(String namespace) Get the strategy used to check the a new schema provided by a producer is compatible with the current schema before it is installed.TopicPolicies.getSchemaCompatibilityStrategy(String topic, boolean applied) Get schema compatibility strategy on a topic.返回变量类型为SchemaCompatibilityStrategy的类型的org.apache.pulsar.client.admin中的方法修饰符和类型方法说明Namespaces.getSchemaCompatibilityStrategyAsync(String namespace) Get the strategy used to check the a new schema provided by a producer is compatible with the current schema before it is installed asynchronously.TopicPolicies.getSchemaCompatibilityStrategyAsync(String topic, boolean applied) Get schema compatibility strategy on a topic asynchronously.修饰符和类型方法说明voidNamespaces.setSchemaCompatibilityStrategy(String namespace, SchemaCompatibilityStrategy strategy) Set the strategy used to check the a new schema provided by a producer is compatible with the current schema before it is installed.voidTopicPolicies.setSchemaCompatibilityStrategy(String topic, SchemaCompatibilityStrategy strategy) Set schema compatibility strategy on a topic.Namespaces.setSchemaCompatibilityStrategyAsync(String namespace, SchemaCompatibilityStrategy strategy) Set the strategy used to check the a new schema provided by a producer is compatible with the current schema before it is installed asynchronously.TopicPolicies.setSchemaCompatibilityStrategyAsync(String topic, SchemaCompatibilityStrategy strategy) Set schema compatibility strategy on a topic asynchronously. -
org.apache.pulsar.common.policies.data中SchemaCompatibilityStrategy的使用
修饰符和类型方法说明static SchemaCompatibilityStrategySchemaCompatibilityStrategy.fromAutoUpdatePolicy(SchemaAutoUpdateCompatibilityStrategy strategy) static SchemaCompatibilityStrategyReturns the enum constant of this class with the specified name.static SchemaCompatibilityStrategy[]SchemaCompatibilityStrategy.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明static booleanSchemaCompatibilityStrategy.isUndefined(SchemaCompatibilityStrategy strategy)