K - key of the storeV - value of the storepublic interface LookupCache<K,V> extends Store<K,V>
| Modifier and Type | Method and Description |
|---|---|
Map<String,Integer> |
clearSubjects(String subject)
Clears the cache of deleted schemas that match the given subject.
|
default CompatibilityLevel |
compatibilityLevel(String subject,
boolean returnTopLevelIfNotFound,
CompatibilityLevel defaultForTopLevel)
Retrieves the config for a subject.
|
Config |
config(String subject,
boolean returnTopLevelIfNotFound,
Config defaultForTopLevel)
Retrieves the config for a subject.
|
boolean |
containsSchema(Schema schema)
Checks if a schema is registered in any subject.
|
boolean |
hasSubjects(String subject,
boolean lookupDeletedSubjects)
Returns whether there exist schemas (that are not deleted) that match the given subject.
|
Mode |
mode(String subject,
boolean returnTopLevelIfNotFound,
Mode defaultForTopLevel)
Retrieves the mode for a subject.
|
Set<Integer> |
referencesSchema(SchemaKey schema)
Returns schemas that reference the given schema.
|
void |
schemaDeleted(SchemaKey schemaKey,
SchemaValue schemaValue,
SchemaValue oldSchemaValue)
Callback that is invoked when a schema is deleted.
|
SchemaIdAndSubjects |
schemaIdAndSubjects(Schema schema)
Provides SchemaIdAndSubjects associated with the schema.
|
SchemaKey |
schemaKeyById(Integer id,
String subject)
Provides the
SchemaKey for the provided schema id. |
void |
schemaRegistered(SchemaKey schemaKey,
SchemaValue schemaValue,
SchemaValue oldSchemaValue)
Callback that is invoked when a schema is registered.
|
void |
schemaTombstoned(SchemaKey schemaKey,
SchemaValue schemaValue)
Callback that is invoked when a schema is tombstoned.
|
default void |
setTenant(String tenant)
Can be used by subclasses to implement multi-tenancy
|
Set<String> |
subjects(String subject,
boolean lookupDeletedSubjects)
Returns subjects that have schemas (that are not deleted) that match the given subject.
|
default String |
tenant() |
SchemaIdAndSubjects schemaIdAndSubjects(Schema schema) throws StoreException
schema - schema object; never nullStoreExceptionboolean containsSchema(Schema schema) throws StoreException
schema - schema objectStoreExceptionSet<Integer> referencesSchema(SchemaKey schema) throws StoreException
schema - schema objectStoreExceptionSchemaKey schemaKeyById(Integer id, String subject) throws StoreException
SchemaKey for the provided schema id.id - the schema id; never nullsubject - the qualified context or subjectSchemaKey if found, otherwise null.StoreExceptionvoid schemaRegistered(SchemaKey schemaKey, SchemaValue schemaValue, SchemaValue oldSchemaValue)
schemaKey - the registered SchemaKey; never nullschemaValue - the registered SchemaValue; never nulloldSchemaValue - the previous SchemaValuevoid schemaDeleted(SchemaKey schemaKey, SchemaValue schemaValue, SchemaValue oldSchemaValue)
schemaKey - the deleted SchemaKey; never nullschemaValue - the deleted SchemaValue; never nulloldSchemaValue - the previous SchemaValuevoid schemaTombstoned(SchemaKey schemaKey, SchemaValue schemaValue)
schemaKey - the tombstoned SchemaKey; never nullschemaValue - the tombstoned SchemaValuedefault CompatibilityLevel compatibilityLevel(String subject, boolean returnTopLevelIfNotFound, CompatibilityLevel defaultForTopLevel) throws StoreException
subject - the subjectreturnTopLevelIfNotFound - whether to return the top level scope if not founddefaultForTopLevel - default value for the top level scopeStoreExceptionConfig config(String subject, boolean returnTopLevelIfNotFound, Config defaultForTopLevel) throws StoreException
subject - the subjectreturnTopLevelIfNotFound - whether to return the top level scope if not founddefaultForTopLevel - default value for the top level scopeStoreExceptionMode mode(String subject, boolean returnTopLevelIfNotFound, Mode defaultForTopLevel) throws StoreException
subject - the subjectreturnTopLevelIfNotFound - whether to return the top level scope if not founddefaultForTopLevel - default value for the top level scopeStoreExceptionSet<String> subjects(String subject, boolean lookupDeletedSubjects) throws StoreException
subject - the subject, or null for all subjectsStoreExceptionboolean hasSubjects(String subject, boolean lookupDeletedSubjects) throws StoreException
subject - the subject, or null for all subjectsStoreExceptionMap<String,Integer> clearSubjects(String subject) throws StoreException
subject - the subject, or null for all subjectsStoreExceptiondefault String tenant()
default void setTenant(String tenant)
tenant - the tenantCopyright © 2026 Confluent, Inc.. All rights reserved.