Class ProtobufSchemaCompatibilityCheck
- java.lang.Object
-
- org.apache.pulsar.broker.service.schema.AvroSchemaCompatibilityCheck
-
- org.apache.pulsar.broker.service.schema.ProtobufSchemaCompatibilityCheck
-
- All Implemented Interfaces:
SchemaCompatibilityCheck
public class ProtobufSchemaCompatibilityCheck extends AvroSchemaCompatibilityCheck
TheSchemaCompatibilityCheckimplementation forSchemaType.PROTOBUF.
-
-
Field Summary
-
Fields inherited from interface org.apache.pulsar.broker.service.schema.SchemaCompatibilityCheck
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description ProtobufSchemaCompatibilityCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCompatible(java.lang.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.SchemaTypegetSchemaType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pulsar.broker.service.schema.SchemaCompatibilityCheck
isCompatible, isCompatible
-
-
-
-
Method Detail
-
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(java.lang.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
-
-