Class ProtobufNativeSchemaCompatibilityCheck
java.lang.Object
org.apache.pulsar.broker.service.schema.ProtobufNativeSchemaCompatibilityCheck
- All Implemented Interfaces:
SchemaCompatibilityCheck
public class ProtobufNativeSchemaCompatibilityCheck
extends Object
implements SchemaCompatibilityCheck
The
SchemaCompatibilityCheck implementation for SchemaType.PROTOBUF_NATIVE.-
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
-
ProtobufNativeSchemaCompatibilityCheck
public ProtobufNativeSchemaCompatibilityCheck()
-
-
Method Details
-
getSchemaType
public org.apache.pulsar.common.schema.SchemaType getSchemaType()- Specified by:
getSchemaTypein interfaceSchemaCompatibilityCheck
-
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
-