Class ProtobufSchemaCompatibilityCheck
java.lang.Object
org.apache.pulsar.broker.service.schema.AvroSchemaCompatibilityCheck
org.apache.pulsar.broker.service.schema.ProtobufSchemaCompatibilityCheck
- All Implemented Interfaces:
SchemaCompatibilityCheck
The
SchemaCompatibilityCheck implementation for SchemaType.PROTOBUF.-
Field Summary
Fields inherited from interface org.apache.pulsar.broker.service.schema.SchemaCompatibilityCheck
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCompatible(Iterable<org.apache.pulsar.common.protocol.schema.SchemaData> from, org.apache.pulsar.common.protocol.schema.SchemaData to, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) voidcheckCompatible(org.apache.pulsar.common.protocol.schema.SchemaData from, org.apache.pulsar.common.protocol.schema.SchemaData to, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) org.apache.pulsar.common.schema.SchemaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.broker.service.schema.SchemaCompatibilityCheck
isCompatible, isCompatible
-
Constructor Details
-
ProtobufSchemaCompatibilityCheck
public ProtobufSchemaCompatibilityCheck()
-
-
Method Details
-
getSchemaType
public org.apache.pulsar.common.schema.SchemaType getSchemaType()- Specified by:
getSchemaTypein interfaceSchemaCompatibilityCheck- Overrides:
getSchemaTypein classAvroSchemaCompatibilityCheck
-
checkCompatible
public void checkCompatible(org.apache.pulsar.common.protocol.schema.SchemaData from, org.apache.pulsar.common.protocol.schema.SchemaData to, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) throws IncompatibleSchemaException - Specified by:
checkCompatiblein interfaceSchemaCompatibilityCheck- Parameters:
from- the current schema i.e. schema that the broker hasto- the future schema i.e. the schema sent by the producerstrategy- the strategy to use when comparing schemas- Throws:
IncompatibleSchemaException
-
checkCompatible
public void checkCompatible(Iterable<org.apache.pulsar.common.protocol.schema.SchemaData> from, org.apache.pulsar.common.protocol.schema.SchemaData to, org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) throws IncompatibleSchemaException - Specified by:
checkCompatiblein interfaceSchemaCompatibilityCheck- Parameters:
from- the current schemas i.e. schemas that the broker hasto- the future schema i.e. the schema sent by the producerstrategy- the strategy to use when comparing schemas- Throws:
IncompatibleSchemaException
-