public interface IdGenerator
| Modifier and Type | Method and Description |
|---|---|
void |
configure(SchemaRegistryConfig config)
Configure the underlying generator.
|
int |
getMaxId(SchemaValue schema)
Returns the current max id from the generator
|
int |
id(SchemaValue schema)
Provides the id for the schema.
|
void |
init()
Initialize the underlying generator.
|
void |
schemaRegistered(SchemaKey schemaKey,
SchemaValue schemaValue)
Callback method that is invoked when a schema is registered.
|
int id(SchemaValue schema) throws IdGenerationException
schema - the schema being registered; never nullnullIdGenerationException - exception when id can't be generatedvoid configure(SchemaRegistryConfig config)
config - Schema Registry Configsvoid init() throws IdGenerationException
IdGenerationException - exception when IdGenerator can't be initializedint getMaxId(SchemaValue schema)
schema - current schema in the request to Schema Registrynullvoid schemaRegistered(SchemaKey schemaKey, SchemaValue schemaValue)
schemaKey - the registered SchemaKey; never nullschemaValue - the registered SchemaValue; never nullCopyright © 2026 Confluent, Inc.. All rights reserved.