Interface SchemaRegistryService
-
- All Superinterfaces:
java.lang.AutoCloseable,SchemaRegistry
- All Known Implementing Classes:
DefaultSchemaRegistryService,SchemaRegistryServiceImpl,SchemaRegistryServiceWithSchemaDataValidator
public interface SchemaRegistryService extends SchemaRegistry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pulsar.broker.service.schema.SchemaRegistry
SchemaRegistry.SchemaAndMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGstatic longNO_SCHEMA_VERSION
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()static SchemaRegistryServicecreate(org.apache.pulsar.common.protocol.schema.SchemaStorage schemaStorage, java.util.Set<java.lang.String> schemaRegistryCompatibilityCheckers)static java.util.Map<org.apache.pulsar.common.schema.SchemaType,SchemaCompatibilityCheck>getCheckers(java.util.Set<java.lang.String> checkerClasses)-
Methods inherited from interface org.apache.pulsar.broker.service.schema.SchemaRegistry
checkCompatible, checkConsumerCompatibility, deleteSchema, deleteSchemaStorage, deleteSchemaStorage, findSchemaVersion, getAllSchemas, getSchema, getSchema, getSchemaVersionBySchemaData, isCompatible, putSchemaIfAbsent, trimDeletedSchemaAndGetList, versionFromBytes
-
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
-
NO_SCHEMA_VERSION
static final long NO_SCHEMA_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCheckers
static java.util.Map<org.apache.pulsar.common.schema.SchemaType,SchemaCompatibilityCheck> getCheckers(java.util.Set<java.lang.String> checkerClasses) throws java.lang.Exception
- Throws:
java.lang.Exception
-
create
static SchemaRegistryService create(org.apache.pulsar.common.protocol.schema.SchemaStorage schemaStorage, java.util.Set<java.lang.String> schemaRegistryCompatibilityCheckers)
-
close
void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-